From 1e1be409b7c27a9f04e52607d7347d05edbfc6c8 Mon Sep 17 00:00:00 2001 From: brumsoel Date: Wed, 8 Oct 2014 22:40:57 +0200 Subject: Fix timestamp comparator return value --- apps/files/lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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; } /** -- cgit v1.2.3