Fixes 'unknown user' for disabled accounts (traffic overview), fixes #791
Thanks to monotek
This commit is contained in:
@@ -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'];
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user