From: Niklas Laxström Date: Thu, 5 Feb 2009 19:55:57 +0000 (+0000) Subject: * STFU E_WARN, please review for correcteness X-Git-Tag: 1.31.0-rc.0~43023 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=36dbe353741e65b05b6adccc3cf534217b1c638a;p=lhc%2Fweb%2Fwiklou.git * STFU E_WARN, please review for correcteness --- diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index af5691125f..10c8593055 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'];