From fb63dac2d14a7ddd3428440eba0bc9826a96f08f Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 16 Jun 2010 10:11:29 +0000 Subject: [PATCH] - sorry, wrong checking, corrected now --- install/updates/froxlor/0.9/update_0.9.inc.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install/updates/froxlor/0.9/update_0.9.inc.php b/install/updates/froxlor/0.9/update_0.9.inc.php index d5630a4a..a2248bd3 100644 --- a/install/updates/froxlor/0.9/update_0.9.inc.php +++ b/install/updates/froxlor/0.9/update_0.9.inc.php @@ -801,21 +801,25 @@ if(isFroxlorVersion('0.9.9')) showUpdateStep("Checking whether you are missing any settings", false); $nonefound = true; - if(!isset($settings['system']['httpuser'])) + + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_SETTINGS . "` WHERE `settinggroup` = 'system' AND `varname` = 'httpuser'"); + if(!isset($result) || !isset($result['value'])) { $nonefound = false; showUpdateStep("Adding missing setting 'httpuser'"); $db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'httpuser', 'www-data');"); lastStepStatus(0); } - if(!isset($settings['system']['httpgroup'])) + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_SETTINGS . "` WHERE `settinggroup` = 'system' AND `varname` = 'httpgroup'"); + if(!isset($result) || !isset($result['value'])) { $nonefound = false; showUpdateStep("Adding missing setting 'httpgroup'"); $db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'httpgroup', 'www-data');"); lastStepStatus(0); } - if(!isset($settings['system']['debug_cron'])) + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_SETTINGS . "` WHERE `settinggroup` = 'system' AND `varname` = 'debug_cron'"); + if(!isset($result) || !isset($result['value'])) { $nonefound = false; showUpdateStep("Adding missing setting 'debug_cron'");