diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-29 08:41:13 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-29 08:41:13 +0000 |
commit | d6a891da5a4c6718eeb1a6907a0ac3712a968906 (patch) | |
tree | afc690ccc123b444dbc5b9127610ffc8a78f9715 | |
parent | ad9c8bb4fe58bde041199a2f4fca7b7ca928173c (diff) | |
download | pfsense-d6a891da5a4c6718eeb1a6907a0ac3712a968906.zip pfsense-d6a891da5a4c6718eeb1a6907a0ac3712a968906.tar.gz |
Avoid errors that appear if this is set uncorrectly.
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 3b86f2e..9e5cef0 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -477,7 +477,10 @@ if ($_POST) { else unset($wancfg['blockbogons']); $wancfg['spoofmac'] = $_POST['spoofmac']; - $wancfg['mtu'] = $_POST['mtu']; + if (empty($_POST['mtu'])) + unset($wancfg['mtu']); + else + $wancfg['mtu'] = $_POST['mtu']; if (isset($wancfg['wireless'])) handle_wireless_post(); write_config(); |