* STFU E_WARN, please review for correcteness
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 5 Feb 2009 19:55:57 +0000 (19:55 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 5 Feb 2009 19:55:57 +0000 (19:55 +0000)
includes/PrefixSearch.php

index af56911..10c8593 100644 (file)
@@ -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'];