diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 00:05:11 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 00:05:11 -0400 |
commit | d7f742c26558b1ff08a0d6f28f24a6b5acf537e8 (patch) | |
tree | 7d60261fbb33762486e0cf4984201ce63b85a84b /etc/inc | |
parent | 1f06d2170f731204d8991725b46471c6932b75e3 (diff) | |
download | pfsense-d7f742c26558b1ff08a0d6f28f24a6b5acf537e8.zip pfsense-d7f742c26558b1ff08a0d6f28f24a6b5acf537e8.tar.gz |
Do not process items in which we cannot resolve the config file
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index f8c187c..f06b98c 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -740,6 +740,8 @@ function delete_package($pkg, $pkgid) { $pkg_info = $config['installedpackages']['package'][$pkgid]; $configfile = $pkg_info['configurationfile']; + if(empty($configfile)) + return; if(file_exists("/usr/local/pkg/" . $configfile)) { $static_output .= "\nLoading package configuration $configfile... "; update_output_window($static_output); |