Project

General

Profile

« Previous | Next » 

Revision cab08bfb

Added by Pi Ba about 8 years ago

pkg_edit, fix empty config tag check

(cherry picked from commit 6bf2a65086f7664c870a9565b70c39655c2a3dcf)
(cherry picked from commit eb65e543b4d04b29ee494fe8d3710213e0fddf23)

View differences:

src/usr/local/www/pkg_edit.php
127 127
// If the first entry in the array is an empty <config/> tag, kill it.
128 128
if ($config['installedpackages'] &&
129 129
    (count($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']) > 0) &&
130
    ($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'][0] == "")) {
130
    (count($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'][0]) == 0)) {
131 131
	array_shift($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']);
132 132
}
133 133

  

Also available in: Unified diff