mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Fix timestamp comparator return value
This commit is contained in:
parent
23e120511a
commit
1e1be409b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue