- sorry, wrong checking, corrected now
This commit is contained in:
@@ -801,21 +801,25 @@ if(isFroxlorVersion('0.9.9'))
|
|||||||
|
|
||||||
showUpdateStep("Checking whether you are missing any settings", false);
|
showUpdateStep("Checking whether you are missing any settings", false);
|
||||||
$nonefound = true;
|
$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;
|
$nonefound = false;
|
||||||
showUpdateStep("Adding missing setting 'httpuser'");
|
showUpdateStep("Adding missing setting 'httpuser'");
|
||||||
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'httpuser', 'www-data');");
|
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'httpuser', 'www-data');");
|
||||||
lastStepStatus(0);
|
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;
|
$nonefound = false;
|
||||||
showUpdateStep("Adding missing setting 'httpgroup'");
|
showUpdateStep("Adding missing setting 'httpgroup'");
|
||||||
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'httpgroup', 'www-data');");
|
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'httpgroup', 'www-data');");
|
||||||
lastStepStatus(0);
|
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;
|
$nonefound = false;
|
||||||
showUpdateStep("Adding missing setting 'debug_cron'");
|
showUpdateStep("Adding missing setting 'debug_cron'");
|
||||||
|
|||||||
Reference in New Issue
Block a user