* [MOD] Fixed some issues when running on PHP 7.2. Work in progress

This commit is contained in:
nuxsmin
2018-06-28 17:19:30 +02:00
committed by Rubén D
parent f3343059eb
commit 96eda4f3eb
13 changed files with 1562 additions and 79 deletions

View File

@@ -144,7 +144,11 @@ function mb_ucfirst($string)
*/
function getElapsedTime($from)
{
return microtime(true) - (float)$from;
if ($from === 0) {
return 0;
}
return microtime(true) - floatval($from);
}
/**