From: Bryan Tong Minh Date: Sun, 24 Oct 2010 14:56:13 +0000 (+0000) Subject: Remove unnecessary @error surpressing operator. $pageSet is always defined and getGoo... X-Git-Tag: 1.31.0-rc.0~34342 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=3f603335f3d94da11b1d348b20cdc420f0cd6771;p=lhc%2Fweb%2Fwiklou.git Remove unnecessary @error surpressing operator. $pageSet is always defined and getGoodTitles() always returns an array --- diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 1dbd615ccd..4f2a1cf9c8 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -462,7 +462,7 @@ class ApiQuery extends ApiBase { // output with an ob ob_start(); $exporter->openStream(); - foreach ( @$pageSet->getGoodTitles() as $title ) { + foreach ( $pageSet->getGoodTitles() as $title ) { if ( $title->userCanRead() ) { $exporter->pageByTitle( $title ); }