Skip to content
Snippets Groups Projects
Commit 2f1605cf authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11471 from brumsoel/master

Fix file size comparator return value
parents f664a31d 40174b6b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment