From 19fc85b371baad628924ab850a7f90b208c6c123 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 21 Mar 2005 21:39:24 +0000 Subject: Do not eval custom_php_install_command unless it exists --- usr/local/www/pkg_mgr_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 04bd200..1ea2d19 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -422,7 +422,7 @@ foreach ($packages_to_install as $id) { update_progress_bar($pb_percent); $pb_percent += 10; - if($package_conf['custom_php_install_command']) { + if($package_conf['custom_php_install_command'] <> "") { if($package_conf['custom_php_global_functions'] <> "") if(php_check_syntax($package_conf['custom_php_global_functions'], $error_message) == false) eval($package_conf['custom_php_global_functions']); -- cgit v1.1