Index: trunk/phase3/includes/PrefixSearch.php |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | |
137 | 137 | // Reformat useful data for future printing by JSON engine |
138 | 138 | $srchres = array (); |
139 | | - foreach ($data['query']['allpages'] as & $pageinfo) { |
| 139 | + foreach ((array)$data['query']['allpages'] as $pageinfo) { |
140 | 140 | // Note: this data will no be printable by the xml engine |
141 | 141 | // because it does not support lists of unnamed items |
142 | 142 | $srchres[] = $pageinfo['title']; |