Remove unnecessary @error surpressing operator. $pageSet is always defined and getGoo...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 24 Oct 2010 14:56:13 +0000 (14:56 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 24 Oct 2010 14:56:13 +0000 (14:56 +0000)
includes/api/ApiQuery.php

index 1dbd615..4f2a1cf 100644 (file)
@@ -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 );
                                }