dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove unused fields in ForeignDBViaLBRepo"
[lhc/web/wiklou.git]
/
includes
/
libs
/
virtualrest
/
VirtualRESTServiceClient.php
diff --git
a/includes/libs/virtualrest/VirtualRESTServiceClient.php
b/includes/libs/virtualrest/VirtualRESTServiceClient.php
index
e3b9376
..
96d7929
100644
(file)
--- a/
includes/libs/virtualrest/VirtualRESTServiceClient.php
+++ b/
includes/libs/virtualrest/VirtualRESTServiceClient.php
@@
-105,10
+105,7
@@
class VirtualRESTServiceClient {
$cmpFunc = function ( $a, $b ) {
$al = substr_count( $a, '/' );
$bl = substr_count( $b, '/' );
$cmpFunc = function ( $a, $b ) {
$al = substr_count( $a, '/' );
$bl = substr_count( $b, '/' );
- if ( $al === $bl ) {
- return 0; // should not actually happen
- }
- return ( $al < $bl ) ? 1 : -1; // largest prefix first
+ return $bl <=> $al; // largest prefix first
};
$matches = []; // matching prefixes (mount points)
};
$matches = []; // matching prefixes (mount points)