From 72e90545454c0e014318fa3c81658e035aac58c1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 10 Jun 2009 13:00:47 +0200 Subject: applying patch to version 1.15.0 --- includes/PrefixSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/PrefixSearch.php') diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index af569112..10c85930 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']; -- cgit v1.2.3-54-g00ecf