dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f9f5b
)
$timeout was optional in Http::get()
author
Gilles Dubuc
<gdubuc@wikimedia.org>
Mon, 2 Mar 2015 19:25:29 +0000
(20:25 +0100)
committer
Gilles Dubuc
<gdubuc@wikimedia.org>
Mon, 2 Mar 2015 19:25:29 +0000
(20:25 +0100)
Change-Id: I6cd2918412395d1d5f811f0d47bb080f22b598ec
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
7f0d6a2
..
3728cdf
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-91,7
+91,7
@@
class Http {
*/
public static function get( $url, $options = array() ) {
$args = func_get_args();
- if ( is
_string( $args[1] ) || is_numeric( $args[1]
) ) {
+ if ( is
set( $args[1] ) && ( is_string( $args[1] ) || is_numeric( $args[1] )
) ) {
// Second was used to be the timeout
// And third parameter used to be $options
wfWarn( "Second parameter should not be a timeout." );