$text="n/a";
$html="";
$html .= "<td";
- $option=$options['class']; if ($option) $html .= " class='$option'";
- $option=$options['columns'];if ($option) $html .= " colspan='$option'";
- $option=$options['hfill']; if ($option) $html .= " colspan='" . $this->columns() . "'";
- $option=$options['align']; if ($option) $html .= " style='text-align:$option'";
- $option=$options['color']; if ($option) $html .= " style='color:$option'";
- $option=$options['display']; if ($option) $html .= " style='display: $option'";
- $option=$options['name']; if ($option) $html .= " name='$option'";
+ $option=get_array($options, 'class');
+ if ($option) $html .= " class='$option'";
+ $option=get_array($options, 'columns');
+ if ($option) $html .= " colspan='$option'";
+ $option=get_array($options, 'hfill');
+ if ($option) $html .= " colspan='" . $this->columns() . "'";
+ $option=get_array($options, 'align');
+ if ($option) $html .= " style='text-align:$option'";
+ $option=get_array($options, 'color');
+ if ($option) $html .= " style='color:$option'";
+ $option=get_array($options, 'display');
+ if ($option) $html .= " style='display: $option'";
+ $option=get_array($options, 'name');
+ if ($option) $html .= " name='$option'";
$html .= ">$text</td>";
return $html;
}