Removed some usage of error suppression operator
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 9 Jun 2011 19:52:07 +0000 (19:52 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 9 Jun 2011 19:52:07 +0000 (19:52 +0000)
includes/ConfEditor.php
includes/HistoryBlob.php

index 3604ee8..42a7173 100644 (file)
@@ -315,7 +315,7 @@ class ConfEditor {
                        // extra quote on the end!
                        return strtr( substr( trim( $str ), 1, -1 ),
                                array( '\\\'' => '\'', '\\\\' => '\\' ) );
-               if ( $str !== '' && @$str[0] == '"' )
+               if ( $str !== '' && $str[0] == '"' )
                        // Double-quoted string
                        // @todo FIXME: trim() call is due to mystery bug where whitespace gets
                        // appended to the token; without it we ended up reading in the
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;
                                }