diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-25 17:15:00 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-25 17:15:00 +0000 |
commit | 29c7ac0d66d16c1d17de11ca8e107a47f008fe6c (patch) | |
tree | 6a3383349856ab738816c939afeb94a1e393ba32 /etc/inc/pkg-utils.inc | |
parent | 351f5e6a30768b34ecab6503c665b8c43efdc165 (diff) | |
download | pfsense-29c7ac0d66d16c1d17de11ca8e107a47f008fe6c.zip pfsense-29c7ac0d66d16c1d17de11ca8e107a47f008fe6c.tar.gz |
Do not process empty tags in the config as this breaks the code.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index c0c3c2c..6b5de9c 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -173,6 +173,8 @@ function resync_all_package_configs($show_message = false) { if(!$config['installedpackages']['package']) return; if($show_message == true) print "Syncing packages:"; foreach($config['installedpackages']['package'] as $package) { + if (empty($package['name'])) + continue; if($show_message == true) print " " . $package['name']; get_pkg_depends($package['name'], "all"); stop_service($package['name']); @@ -1083,4 +1085,4 @@ function pkg_build_filter_rules() { file_notice($error); } -?>
\ No newline at end of file +?> |