Merge pull request #11471 from brumsoel/master
Fix file size comparator return value
This commit is contained in:
commit
2f1605cfc3
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue