diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-28 08:34:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-28 08:34:49 +0000 |
commit | 2c21de57078486c72c8e24f680608a32d2b721f4 (patch) | |
tree | 89154847f42c439d8fbb324b76ebd7c2dd913866 /etc/inc/pkg-utils.inc | |
parent | 892aef153e5db05551bc337ddbc0d2eacfad98d8 (diff) | |
download | pfsense-2c21de57078486c72c8e24f680608a32d2b721f4.zip pfsense-2c21de57078486c72c8e24f680608a32d2b721f4.tar.gz |
Extra safety check
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index ab2a9f7..9a9ba0d 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -744,7 +744,8 @@ function delete_package_xml($pkg) { $static_output = "Loading package instructions..."; update_output_window($static_output); fwrite($fd_log, "require_once('include_file')\n"); - require_once($pkg_config['include_file']); + if(file_exists($pkg_config['include_file'])) + require_once($pkg_config['include_file']); fwrite($fd_log, "require_once('include_file') included\n"); } /* evalate this package's global functions and pre deinstall commands */ |