1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

PHP8 Compatibility and code cleanup.

This commit is contained in:
Cameron
2020-12-08 12:21:12 -08:00
parent a094a8fb73
commit afaac88003
49 changed files with 264 additions and 225 deletions

View File

@@ -176,7 +176,7 @@ class e107_traffic
{
return;
}
if ($tObject != $this)
if ($tObject !== $this)
{
message_handler("CRITICAL_ERROR", "Bad traffic object", __LINE__ - 2, __FILE__);
}
@@ -225,8 +225,10 @@ if (!isset($qTimeOn))
{
$GLOBALS['qTimeOn'] = explode(' ', microtime());
}
function eQTimeOff()
{
global $qTimeOn;
$e = explode(' ', microtime());
$diff = ((float) $e[0] + (float) $e[1]) - ((float) $qTimeOn[0] + (float) $qTimeOn[1]);
$GLOBALS['qTimeTotal'] += $diff;