From a30afc6a4077a3099b1af5e4c0e3e0ad3b17a880 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 2 Mar 2005 01:43:18 +0000 Subject: Do not interate installedpackages if they dont exist. --- etc/inc/pfsense-utils.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 7d9730e..5350fd8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -514,6 +514,7 @@ function update_progress_bar($percent) { */ function resync_all_packages_config() { log_error("Resyncing configuration for all packages."); + if(!$config['installedpackages']['package']) return; foreach($config['installedpackages']['package'] as $package) { if(file_exists("/usr/local/pkg/" . $package['configurationfile'])) { $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "pfsensepkgs"); -- cgit v1.1