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
Fix using null for a non-nullable argument
[lhc/web/wiklou.git]
/
includes
/
GlobalFunctions.php
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
3b4e657
..
2ed385e
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-518,7
+518,7
@@
function wfExpandUrl( $url, $defaultProto = PROTO_CURRENT ) {
}
}
- $defaultProtoWithoutSlashes =
substr( $defaultProto, 0, -2 )
;
+ $defaultProtoWithoutSlashes =
$defaultProto !== null ? substr( $defaultProto, 0, -2 ) : ''
;
if ( substr( $url, 0, 2 ) == '//' ) {
$url = $defaultProtoWithoutSlashes . $url;