summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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