diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-30 13:26:20 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-30 13:26:20 -0400 |
commit | 205c51a217d29316334aebbc0cbc123794ba5160 (patch) | |
tree | 5cebb52943b23bcac959f4ed2a9c2dd2b9dbb932 /src/usr | |
parent | 5bca8df4104e2902bd0869f2dafccaa451f4204d (diff) | |
download | pfsense-205c51a217d29316334aebbc0cbc123794ba5160.zip pfsense-205c51a217d29316334aebbc0cbc123794ba5160.tar.gz |
Fixed #5127
Don't "foreach($config['menus'])" if there are no menus defined
Diffstat (limited to 'src/usr')
-rwxr-xr-x | src/usr/local/www/head.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index ce5b10c..54a05a4 100755 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -122,7 +122,7 @@ function return_ext_menu($section) { $htmltext = ""; $extarray = array(); - if (!empty($config['installedpackages']['package'])) { + if ( (!empty($config['installedpackages']['package'])) && (!empty($config['installedpackages']['menu']))) { foreach ($config['installedpackages']['menu'] as $menu) { // print('Name: ' . $menu['name'] . ', Pkg category: ' . $menu['category'] . ', Section: ' . $section . '<br />'); if ($menu['section'] != $section) { |