X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/74c929b24b048c9f1e31e17db757ae4195cd7673..dc9cc5d707f5a612938cc9371614cc41c328fda2:/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'];