summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorbrumsoel <brumsel@losecatcher.de>2014-10-08 22:40:57 +0200
committerbrumsoel <brumsel@losecatcher.de>2014-10-08 22:40:57 +0200
commit1e1be409b7c27a9f04e52607d7347d05edbfc6c8 (patch)
tree5ac25bd11e26fff8e5af58b62be5f61053359869 /apps/files/lib
parent23e120511a20965cf95821d739eb895d4c3c6672 (diff)
downloadnextcloud-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.php2
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;
}
/**