1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Issue #2779 - Statistics logging plugin throws fatal error

This commit is contained in:
Cameron 2017-09-18 13:47:12 -07:00
parent 8f7cd55464
commit 3e9629420c

View File

@ -163,8 +163,15 @@ class logConsolidate
if (!isset($$varname)) $$varname = array(); // Create monthly arrays if they don't exist
}
require($this->pathtologs.$this->pfileprev); // Yesterday's page accesses - $pageInfo array
require($this->pathtologs.$this->ifileprev); // Yesterdays browser accesses etc
if(file_exists($this->pathtologs.$this->pfileprev))
{
require($this->pathtologs.$this->pfileprev); // Yesterday's page accesses - $pageInfo array
}
if(file_exists($this->pathtologs.$this->ifileprev))
{
require($this->pathtologs.$this->ifileprev); // Yesterdays browser accesses etc
}
foreach($browserInfo as $name => $amount)
{