Fix fixme on r107328, attempting to use $this in a static method
[lhc/web/wiklou.git] / includes / HistoryBlob.php
index fdc55a5..f707b3f 100644 (file)
@@ -225,8 +225,8 @@ class HistoryBlobStub {
                        $flags = explode( ',', $row->old_flags );
                        if( in_array( 'external', $flags ) ) {
                                $url=$row->old_text;
-                               @list( /* $proto */ ,$path)=explode('://',$url,2);
-                               if ( $path == "" ) {
+                               $parts = explode( '://', $url, 2 );
+                               if ( !isset( $parts[1] ) || $parts[1] == '' ) {
                                        wfProfileOut( $fname );
                                        return false;
                                }