summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-16 03:37:49 +0000
committerColin Smith <colin@pfsense.org>2005-06-16 03:37:49 +0000
commit5796558837cf3f579d3e69a9ac9a9237a5b33791 (patch)
treec54b2a3441597be8d3cd6debffbf93d758fae558 /etc/inc/pkg-utils.inc
parentb8358d15ed3859865db109dd81eb1f9106aedbb5 (diff)
downloadpfsense-5796558837cf3f579d3e69a9ac9a9237a5b33791.zip
pfsense-5796558837cf3f579d3e69a9ac9a9237a5b33791.tar.gz
Initialize the $evaled array if it doesn't exist.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc18
1 files changed, 9 insertions, 9 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 3c20b70..a6386a5 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -217,9 +217,9 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
$pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui");
if(isset($pkg_config['nosync'])) continue;
if($pkg['custom_php_global_functions'] <> "")
- eval($pkg['custom_php_global_functions']);
- if($pkg_config['custom_php_command_before_form'] <> "")
- eval($pkg_config['custom_php_command_before_form']);
+ eval($pkg['custom_php_global_functions']);
+ if($pkg_config['custom_php_command_before_form'] <> "")
+ eval($pkg_config['custom_php_command_before_form']);
if($pkg_config['custom_php_resync_config_command'] <> "")
eval($pkg_config['custom_php_resync_config_command']);
if($sync_depends == true) {
@@ -238,12 +238,11 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
eval($item_config['custom_php_resync_config_command']);
}
if($show_message == true) print " " . $item_config['name'];
- }
- }
- }
- }
- }
- return;
+ }
+ }
+ }
+ }
+ }
}
/*
@@ -453,6 +452,7 @@ function install_package($package, $pkg_info = "") {
function eval_once($toeval) {
global $evaled;
+ if(!$evaled) $evaled = array();
$evalmd5 = md5($toeval);
if(!in_array($evalmd5, $evaled)) {
eval($toeval);
OpenPOWER on IntegriCloud