]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/PrefixSearch.php
MediaWiki 1.15.0
[autoinstallsdev/mediawiki.git] / includes / PrefixSearch.php
index af5691125f5167089cf64a96aa0dd7d8d0334ed4..10c8593055b824441f272b0c7d2ea5238f60cd50 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'];