Fix another fatal in r53282
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 15 Jul 2009 21:14:56 +0000 (21:14 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 15 Jul 2009 21:14:56 +0000 (21:14 +0000)
includes/HttpFunctions.php

index 1fd61c8..1f812d8 100644 (file)
@@ -383,6 +383,7 @@ class HttpRequest{
                                'timeout' => $timeout ) );
                $ctx = stream_context_create( $opts );
 
+               $status = new Status;
                $status->value = file_get_contents( $url, false, $ctx );
                if( !$status->value ){
                        $status->error( 'file_get_contents-failed' );