From 4492854f61aee95dc55a005502325c345a3a64d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 25 Jun 2010 14:21:07 +0000 Subject: [PATCH] Suppress warnings --- includes/PrefixSearch.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index e251ee684e..2c4199df13 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -102,7 +102,9 @@ class PrefixSearch { $srchres = array(); foreach( $keys as $pageKey => $page ) { if( $searchKey === '' || strpos( $pageKey, $searchKey ) === 0 ) { + wfSuppressWarnings(); $srchres[] = SpecialPage::getTitleFor( $page )->getPrefixedText(); + wfRestoreWarnings(); } if( count( $srchres ) >= $limit ) { -- 2.20.1