- fixing the fix: uninitialised ...

- additional alignment, caused some space behind the arrow in an active nextmatch header, in a right aligned cell - complicated ;-)
This commit is contained in:
Ralf Becker 2006-04-05 15:28:48 +00:00
parent 435a8ee099
commit f4ee3a80db

View File

@ -128,6 +128,7 @@
{ {
$cell[1] = $cell; $cell[1] = $cell;
$cell[1]['span'] .= ',activ_sortcolumn'; $cell[1]['span'] .= ',activ_sortcolumn';
unset($cell[1]['align']);
$cell[2] = $tmpl->empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up'); $cell[2] = $tmpl->empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up');
$cell['type'] = 'hbox'; $cell['type'] = 'hbox';
$cell['size'] = '2,0,0'; $cell['size'] = '2,0,0';
@ -179,6 +180,7 @@
if (!isset($value[$f])) if (!isset($value[$f]))
{ {
list($value[$f]) = isset($tmpl->sel_options[$f]) ? @each($tmpl->sel_options[$f]) : @each($value['options-'.$f]); list($value[$f]) = isset($tmpl->sel_options[$f]) ? @each($tmpl->sel_options[$f]) : @each($value['options-'.$f]);
if (!is_string($value[$f])) $value[$f] = (string) $value[$f];
} }
} }
list($app,$class,$method) = explode('.',$value['get_rows']); list($app,$class,$method) = explode('.',$value['get_rows']);
@ -379,7 +381,7 @@
} }
unset($value['bottom']); unset($value['bottom']);
} }
if (isset($old_value['num_rows']) && $value['num_rows'] != $old_value['num_rows']) if (isset($old_value['num_rows']) && !is_null($value['num_rows']) && $value['num_rows'] != $old_value['num_rows'])
{ {
$loop = true; // num_rows changed $loop = true; // num_rows changed
} }