http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88334
Revision: 88334
Author: ialex
Date: 2011-05-17 18:03:50 +0000 (Tue, 17 May 2011)
Log Message:
-----------
Removed usage of error suppression operator
Modified Paths:
--------------
trunk/phase3/includes/api/ApiQueryBacklinks.php
Modified: trunk/phase3/includes/api/ApiQueryBacklinks.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryBacklinks.php 2011-05-17 18:01:50 UTC
(rev 88333)
+++ trunk/phase3/includes/api/ApiQueryBacklinks.php 2011-05-17 18:03:50 UTC
(rev 88334)
@@ -409,9 +409,10 @@
$this->dieUsage( 'Invalid continue param. You should
pass the original value returned by the previous query', '_badcontinue' );
}
$this->contID = $contID;
- $redirID = intval( @$continueList[3] );
+ $id2 = isset( $continueList[3] ) ? $continueList[3] : null;
+ $redirID = intval( $id2 );
- if ( $redirID === 0 && @$continueList[3] !== '0' ) {
+ if ( $redirID === 0 && $id2 !== '0' ) {
// This one isn't required
return;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs