mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 21:02:09 +02:00
Prevent headers in CLI mode.
This commit is contained in:
@@ -53,6 +53,12 @@ class e107_traffic
|
||||
{
|
||||
$tFrom = explode(' ', $tStart);
|
||||
$tTo = explode(' ', $tFinish);
|
||||
|
||||
if(!isset($tFrom[1]))
|
||||
{
|
||||
$tFrom[1] = 0;
|
||||
}
|
||||
|
||||
$tTot = ((float) $tTo[0] + (float) $tTo[1]) - ((float) $tFrom[0] + (float) $tFrom[1]);
|
||||
return $tTot;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user