diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-29 21:43:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-29 21:43:38 +0000 |
commit | 04d10bbcac336abad6fdf121fbe61794d3db42dc (patch) | |
tree | f55517762c0515cebd470136b15ca91129ed93c4 /etc/inc/pkg-utils.inc | |
parent | 30e4c34a17f3c75490617af9ca2b5e4ad3987ae3 (diff) | |
download | pfsense-04d10bbcac336abad6fdf121fbe61794d3db42dc.zip pfsense-04d10bbcac336abad6fdf121fbe61794d3db42dc.tar.gz |
MFC 13272
skip past blank packages (not sure where this comes from)
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index b17ece6..521fd98 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -221,7 +221,10 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) { if(!isset($config['installedpackages']['package'][$pkg_id])) return; // No package belongs to the pkg_id passed to this function. } - $package = $config['installedpackages']['package'][$pkg_id]; + if (is_array($config['installedpackages']['package'][$pkg_id])) + $package = $config['installedpackages']['package'][$pkg_id]; + else + return; /* empty package tag */ if(!file_exists("/usr/local/pkg/" . $package['configurationfile'])) { file_notice($package['name'], "The {$package['name']} package is missing its configuration file and must be reinstalled.", "Packages", "/pkg_mgr_install.php?mode=reinstallpkg&pkg={$package['name']}", 1); } else { |