diff --git a/lib/functions/filedir/function.makeChownWithNewStats.php b/lib/functions/filedir/function.makeChownWithNewStats.php index fec2939c..244c47f7 100644 --- a/lib/functions/filedir/function.makeChownWithNewStats.php +++ b/lib/functions/filedir/function.makeChownWithNewStats.php @@ -19,9 +19,9 @@ * chowns either awstats or webalizer folder, * either with webserver-user or - if fcgid * is used - the customers name, #258 - * + * * @param array $row array if panel_customers - * + * * @return void */ function makeChownWithNewStats($row) @@ -29,7 +29,7 @@ function makeChownWithNewStats($row) global $settings; // get correct user - if($settings['system']['mod_fcgid'] == 1) + if($settings['system']['mod_fcgid'] == '1' && $row['deactivated'] == '0') { $user = $row['loginname']; $group = $row['loginname']; diff --git a/scripts/jobs/cron_traffic.php b/scripts/jobs/cron_traffic.php index 3133f709..8f872eed 100644 --- a/scripts/jobs/cron_traffic.php +++ b/scripts/jobs/cron_traffic.php @@ -433,7 +433,7 @@ while($row = $db->fetch_array($result)) $result_quota = $db->query("SELECT homedir FROM `" . TABLE_FTP_USERS . "` WHERE customerid = '" . $row['customerid'] . "'"); // get correct user - if($settings['system']['mod_fcgid'] == 1) + if($settings['system']['mod_fcgid'] == 1 && $row['deactivated'] == '0') { $user = $row['loginname']; $group = $row['loginname'];