Added check for deactivated fcgid settings, fixes #725

Thanks to crazy4chrissi.
This commit is contained in:
Andreas Burchert (scarya)
2011-04-24 01:03:57 +02:00
parent 63fe3e7019
commit b34c0e268e

View File

@@ -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