aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrumsoel <brumsel@losecatcher.de>2014-10-08 01:17:45 +0200
committerbrumsoel <brumsel@losecatcher.de>2014-10-08 01:17:45 +0200
commit40174b6b10e432be45f6d88bb13440c4e1d15f30 (patch)
tree16d517dfb9df3e6593729bb93064258b63392f4f
parentd7db006315cec4d2c0497da06d16db5edfc9b9d2 (diff)
downloadnextcloud-server-40174b6b10e432be45f6d88bb13440c4e1d15f30.tar.gz
nextcloud-server-40174b6b10e432be45f6d88bb13440c4e1d15f30.zip
Fix file size comparator return value
-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 2a5233b6542..e4bfcb4e9ee 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -93,7 +93,7 @@ class Helper
public static function compareSize($a, $b) {
$aSize = $a->getSize();
$bSize = $b->getSize();
- return $aSize - $bSize;
+ return ($aSize < $bSize) ? -1 : 1;
}
/**