summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-03 20:18:27 +0000
committerErmal <eri@pfsense.org>2011-08-03 20:19:13 +0000
commitf3a274b70aaa0f2a97323c6cd780ab6f9eae5ec8 (patch)
treeaa7b1988b37653e92c6693051cad6bfd6d32aa0b /etc
parent05ca39d93d972908e61da6f1b0b9132dd39b017b (diff)
downloadpfsense-f3a274b70aaa0f2a97323c6cd780ab6f9eae5ec8.zip
pfsense-f3a274b70aaa0f2a97323c6cd780ab6f9eae5ec8.tar.gz
Correct the ambiguity caused by missing curlies
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index d9ef4e3..006726b 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -759,11 +759,11 @@ function install_package_xml($pkg) {
$static_output .= gettext("Menu items... ");
update_output_window($static_output);
foreach($pkg_config['menu'] as $menu) {
- if(is_array($config['installedpackages']['menu']))
+ if(is_array($config['installedpackages']['menu'])) {
foreach($config['installedpackages']['menu'] as $amenu)
if($amenu['name'] == $menu['name'])
continue 2;
- else
+ } else
$config['installedpackages']['menu'] = array();
$config['installedpackages']['menu'][] = $menu;
}
@@ -775,11 +775,11 @@ function install_package_xml($pkg) {
$static_output .= gettext("Integrated Tab items... ");
update_output_window($static_output);
foreach($pkg_config['tabs']['tab'] as $tab) {
- if(is_array($config['installedpackages']['tab']))
+ if(is_array($config['installedpackages']['tab'])) {
foreach($config['installedpackages']['tab'] as $atab)
if($atab['name'] == $tab['name'])
continue 2;
- else
+ } else
$config['installedpackages']['tab'] = array();
$config['installedpackages']['tab'][] = $tab;
}
@@ -791,11 +791,11 @@ function install_package_xml($pkg) {
$static_output .= gettext("Services... ");
update_output_window($static_output);
foreach($pkg_config['service'] as $service) {
- if(is_array($config['installedpackages']['service']))
+ if(is_array($config['installedpackages']['service'])) {
foreach($config['installedpackages']['service'] as $aservice)
if($aservice['name'] == $service['name'])
continue 2;
- else
+ } else
$config['installedpackages']['service'] = array();
$config['installedpackages']['service'][] = $service;
}
OpenPOWER on IntegriCloud