- fix loop-in-loop effect when calculating traffic with awstats, fixes #246

This commit is contained in:
Michael Kaufmann (d00p)
2010-10-15 07:32:16 +00:00
parent 2985a08a8d
commit 0b6bb64600
2 changed files with 8 additions and 9 deletions

View File

@@ -144,7 +144,7 @@ function awstatsDoSingleDomain($domain, $outputdir)
return $returnval;
}
function callAwstatsGetTraffic($domain, $outputdir, $caption, $usersdomainlist)
function callAwstatsGetTraffic($customerid, $outputdir, $usersdomainlist)
{
global $settings, $db, $cronlog;
$returnval = 0;
@@ -169,7 +169,6 @@ function callAwstatsGetTraffic($domain, $outputdir, $caption, $usersdomainlist)
* a sane value for our panel_traffic and to remain the whole stats
* (awstats overwrites the customers .html stats-files)
*/
$customerid = getCustomerIdByDomain($domain);
if($customerid !== false)
{