summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-02 01:43:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-02 01:43:18 +0000
commita30afc6a4077a3099b1af5e4c0e3e0ad3b17a880 (patch)
treee2c700ed75b94748218776068eebae71d4a096a2 /etc/inc
parentd4022785b5bda2f09efca40901619d17fbf12fa4 (diff)
downloadpfsense-a30afc6a4077a3099b1af5e4c0e3e0ad3b17a880.zip
pfsense-a30afc6a4077a3099b1af5e4c0e3e0ad3b17a880.tar.gz
Do not interate installedpackages if they dont exist.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc1
1 files changed, 1 insertions, 0 deletions
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");
OpenPOWER on IntegriCloud