diff options
author | jim-p <jimp@pfsense.org> | 2015-09-24 10:03:06 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-09-24 10:04:03 -0400 |
commit | 83b48b440146be346e0b05ab6e42d82dc31b34c8 (patch) | |
tree | 5b476f425f7fc7501e3839b82669f0128783ddb6 /src/usr/local | |
parent | acdc7fd6064827ee1e0e56bf44a8ae2e2fb75626 (diff) | |
download | pfsense-83b48b440146be346e0b05ab6e42d82dc31b34c8.zip pfsense-83b48b440146be346e0b05ab6e42d82dc31b34c8.tar.gz |
Reset the value of a package field before this test in case it has no default. Fixes #5199
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 30b7911..3241157 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -568,6 +568,7 @@ if ($pkg['tabs'] <> "") { // if user is editing a record, load in the data. $fieldname = $pkga['fieldname']; + unset($value); if ($get_from_post) { $value = $_POST[$fieldname]; if (is_array($value)) { |