"fixed php5 only foreach syntax, as we still support php4"

This commit is contained in:
Ralf Becker 2007-05-18 13:49:46 +00:00
parent 7f8b7fb92f
commit cb7eb66434

View File

@ -233,7 +233,8 @@
if(!$query['template'] || $query['template'] == 'etemplate.ajax_select_widget.row') {
$query['template'] = 'etemplate.ajax_select_widget.row';
}
foreach($result_list as $key => &$row) {
foreach($result_list as $key => $nul) {
$row =& $result_list[$key]; // $key => &$row is php5!
if(!is_array($row)) {
continue;
}