mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 19:06:57 +01:00
* [MOD] Fixed some issues when running on PHP 7.2. Work in progress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user