[Pkg-owncloud-commits] [owncloud] 212/258: Fix file size comparator return value
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 251e4d78b8525c195781176445a6eaac472fe141
Author: brumsoel <brumsel at losecatcher.de>
Date: Wed Oct 8 01:17:45 2014 +0200
Fix file size comparator return value
---
apps/files/lib/helper.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index be0992b..8f632df 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;
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list