From b34c0e268e137c47cf1543241e44b7a34919609f Mon Sep 17 00:00:00 2001 From: "Andreas Burchert (scarya)" Date: Sun, 24 Apr 2011 01:03:57 +0200 Subject: [PATCH] Added check for deactivated fcgid settings, fixes #725 Thanks to crazy4chrissi. --- lib/cron_init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cron_init.php b/lib/cron_init.php index 4ba0d9ee..6186deaf 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -171,7 +171,7 @@ fwrite($debugHandler, 'Froxlor settings have been loaded from the database' . "\ * if settings['system']['mod_fcgid_ownvhost'] is set, we have to check * whether the permission of the files are still correct */ -if((int)$settings['system']['mod_fcgid_ownvhost'] == 1) +if((int)$settings['system']['mod_fcgid'] == 1 && (int)$settings['system']['mod_fcgid_ownvhost'] == 1) { fwrite($debugHandler, 'Checking froxlor file permissions'); $mypath = makeCorrectDir(dirname(dirname(__FILE__))); // /var/www/froxlor, needed for chown