From 36dbe353741e65b05b6adccc3cf534217b1c638a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 5 Feb 2009 19:55:57 +0000 Subject: [PATCH] * STFU E_WARN, please review for correcteness --- includes/PrefixSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index af5691125f..10c8593055 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -135,7 +135,7 @@ class PrefixSearch { // Reformat useful data for future printing by JSON engine $srchres = array (); - foreach ($data['query']['allpages'] as & $pageinfo) { + foreach ((array)$data['query']['allpages'] as $pageinfo) { // Note: this data will no be printable by the xml engine // because it does not support lists of unnamed items $srchres[] = $pageinfo['title']; -- 2.20.1