diff options
author | brumsoel <brumsel@losecatcher.de> | 2014-10-08 22:40:57 +0200 |
---|---|---|
committer | brumsoel <brumsel@losecatcher.de> | 2014-10-08 22:40:57 +0200 |
commit | 1e1be409b7c27a9f04e52607d7347d05edbfc6c8 (patch) | |
tree | 5ac25bd11e26fff8e5af58b62be5f61053359869 /apps/files/lib | |
parent | 23e120511a20965cf95821d739eb895d4c3c6672 (diff) | |
download | nextcloud-server-1e1be409b7c27a9f04e52607d7347d05edbfc6c8.tar.gz nextcloud-server-1e1be409b7c27a9f04e52607d7347d05edbfc6c8.zip |
Fix timestamp comparator return value
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index e4bfcb4e9ee..6a6db9276a0 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -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; } /** |