diff options
author | Renato Botelho <renato@netgate.com> | 2017-05-23 13:42:18 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-05-23 13:42:18 -0300 |
commit | 977d48d2d8e26226092f7c055ea66b8504016f38 (patch) | |
tree | a4b92ae36eb1d02219d02945ab96b8374c4238e6 /src/usr/local/www/pkg_edit.php | |
parent | d6f6e63dd6837678e12559d1fb20461ed8d98137 (diff) | |
parent | 6bf2a65086f7664c870a9565b70c39655c2a3dcf (diff) | |
download | pfsense-977d48d2d8e26226092f7c055ea66b8504016f38.zip pfsense-977d48d2d8e26226092f7c055ea66b8504016f38.tar.gz |
Merge pull request #3733 from PiBa-NL/20170520-pkgedit-shiftemptyelement
Diffstat (limited to 'src/usr/local/www/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 301d311..19cdb1f 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -89,7 +89,7 @@ if ($config['installedpackages'] && !is_array($config['installedpackages'][xml_s // If the first entry in the array is an empty <config/> tag, kill it. if ($config['installedpackages'] && (count($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']) > 0) && - ($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'][0] == "")) { + (count($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'][0]) == 0)) { array_shift($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']); } |