summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-05-23 13:42:18 -0300
committerRenato Botelho <renato@netgate.com>2017-05-23 13:42:18 -0300
commit977d48d2d8e26226092f7c055ea66b8504016f38 (patch)
treea4b92ae36eb1d02219d02945ab96b8374c4238e6 /src/usr/local/www
parentd6f6e63dd6837678e12559d1fb20461ed8d98137 (diff)
parent6bf2a65086f7664c870a9565b70c39655c2a3dcf (diff)
downloadpfsense-977d48d2d8e26226092f7c055ea66b8504016f38.zip
pfsense-977d48d2d8e26226092f7c055ea66b8504016f38.tar.gz
Merge pull request #3733 from PiBa-NL/20170520-pkgedit-shiftemptyelement
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/pkg_edit.php2
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']);
}
OpenPOWER on IntegriCloud