From 0d9a26e2240524d802d510ef35fde9232d192e10 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 9 Apr 2006 08:16:12 +0000 Subject: [PATCH] fixed not working arrow-navigation (grids) in the editor: php5.1 does not assign by reference if a function returns no reference --- etemplate/inc/class.path_widget.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.path_widget.inc.php b/etemplate/inc/class.path_widget.inc.php index 32cdb30455..b39e59e7be 100644 --- a/etemplate/inc/class.path_widget.inc.php +++ b/etemplate/inc/class.path_widget.inc.php @@ -77,18 +77,21 @@ $cell['name'] = ''; $cell['type'] = 'hbox'; $cell['size'] = 0; + foreach ($value as $id => $label) { - $sep =& soetemplate::empty_cell(); + $sep = soetemplate::empty_cell(); $sep['label'] = $seperator; soetemplate::add_child($cell,$sep); + unset($sep); - $button =& soetemplate::empty_cell('button',$cell_name.'['.$id.']'); + $button = soetemplate::empty_cell('button',$cell_name.'['.$id.']'); $button['label'] = $label; $button['onchange'] = 1; // display as link $button['no_lang'] = $cell['no_lang']; $button['help'] = $cell['help'] ? $cell['help'] : lang($label)."($i)"; soetemplate::add_child($cell,$button); + unset($button); } return True; // extra Label Ok }