fixed php5.2.6 problem: unknown type ''

This commit is contained in:
Ralf Becker 2008-06-22 07:21:24 +00:00
parent 9392e504b3
commit 483c8939b2
2 changed files with 10 additions and 7 deletions

View File

@ -149,13 +149,16 @@
}
if ($this->last_part($name) == $nm_global['order']) // we're the active column
{
$cell[1] = $cell;
unset($cell[1]['align']);
$cell[2] = $tmpl->empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up');
$cell['type'] = 'hbox';
$cell['size'] = '2,,0,0';
$sorting = $cell;
unset($sorting['align']);
unset($sorting['span']);
$cell = etemplate::empty_cell('hbox','',array(
'span' => $cell['span'],
'size' => '2,,0,0',
1 => $sorting,
2 => etemplate::empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up'),
));
$class = 'activ_sortcolumn';
$cell['name'] = $cell['label'] = '';
}
else
{

View File

@ -182,7 +182,7 @@
);
if ($attributes && is_array($attributes))
{
return array_merge($attributes,$cell);
$cell += $attributes;
}
return $cell;
}