1
0
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:
Cameron
2021-01-16 10:02:52 -08:00
parent 8f4b3429dc
commit 692b8c8538
6 changed files with 24 additions and 11 deletions

View File

@@ -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;
}