Fix timestamp comparator return value

This commit is contained in:
brumsoel 2014-10-08 22:40:57 +02:00
parent 23e120511a
commit 1e1be409b7

View file

@ -80,7 +80,7 @@ class Helper
public static function compareTimestamp($a, $b) {
$aTime = $a->getMTime();
$bTime = $b->getMTime();
return $aTime - $bTime;
return ($aTime < $bTime) ? -1 : 1;
}
/**