fixed not working arrow-navigation (grids) in the editor: php5.1 does not assign by reference if a function returns no reference

This commit is contained in:
Ralf Becker 2006-04-09 08:16:12 +00:00
parent d4cbb31b8f
commit 0d9a26e224

View File

@ -77,18 +77,21 @@
$cell['name'] = ''; $cell['name'] = '';
$cell['type'] = 'hbox'; $cell['type'] = 'hbox';
$cell['size'] = 0; $cell['size'] = 0;
foreach ($value as $id => $label) foreach ($value as $id => $label)
{ {
$sep =& soetemplate::empty_cell(); $sep = soetemplate::empty_cell();
$sep['label'] = $seperator; $sep['label'] = $seperator;
soetemplate::add_child($cell,$sep); 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['label'] = $label;
$button['onchange'] = 1; // display as link $button['onchange'] = 1; // display as link
$button['no_lang'] = $cell['no_lang']; $button['no_lang'] = $cell['no_lang'];
$button['help'] = $cell['help'] ? $cell['help'] : lang($label)."($i)"; $button['help'] = $cell['help'] ? $cell['help'] : lang($label)."($i)";
soetemplate::add_child($cell,$button); soetemplate::add_child($cell,$button);
unset($button);
} }
return True; // extra Label Ok return True; // extra Label Ok
} }