Fixes 'unknown user' for disabled accounts (traffic overview), fixes #791

Thanks to monotek
This commit is contained in:
Andreas Burchert (scarya)
2011-09-19 11:07:09 +02:00
parent 9b12025c9f
commit 8e07768996
2 changed files with 4 additions and 4 deletions

View File

@@ -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'];

View File

@@ -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'];