aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-08 20:39:13 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-10-08 20:39:13 +0200
commit2f1605cfc37cbec828102c12f7e73aae5f58d35e (patch)
tree21a728a522fa95f12cd44a677c38fb1497fdc1b1
parentf664a31deca2b4c0034b93a439456307aedd23d7 (diff)
parent40174b6b10e432be45f6d88bb13440c4e1d15f30 (diff)
downloadnextcloud-server-2f1605cfc37cbec828102c12f7e73aae5f58d35e.tar.gz
nextcloud-server-2f1605cfc37cbec828102c12f7e73aae5f58d35e.zip
Merge pull request #11471 from brumsoel/master
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;
}
/**