Fixing negative time since last block

This will fix #466 if approved by reporter.
This commit is contained in:
Sebastian Grewe 2013-07-16 21:55:52 +02:00
parent b7ffbd0bfd
commit a12499ecd9

View File

@ -38,6 +38,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$now = new DateTime( "now" );
if (!empty($aBlockData)) {
$dTimeSinceLast = ($now->getTimestamp() - $aBlockData['time']);
if ($dTimeSinceLast < 0) $dTimeSinceLast = 0;
} else {
$dTimeSinceLast = 0;
}