From 3f603335f3d94da11b1d348b20cdc420f0cd6771 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sun, 24 Oct 2010 14:56:13 +0000 Subject: [PATCH] Remove unnecessary @error surpressing operator. $pageSet is always defined and getGoodTitles() always returns an array --- includes/api/ApiQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1