it was nerving, being forced to have an icon for categories - many cat's dont

need an icon
This commit is contained in:
ak703 2005-01-10 22:54:05 +00:00
parent 0719a89986
commit 0e6474592e

View File

@ -423,7 +423,10 @@
$this->template->set_var('color',$GLOBALS['phpgw']->html->inputColor('cat_data[color]',$cat['data']['color'],lang('Click to select a color')));
//$options = '<option value=""'.(!$cat['data']['icon'] ? ' selected="1"':'').'>'.lang('none')."</options>\n";
$options = '';
$options = '<option value="">'.lang('none')."</options>\n";
foreach ($this->icons as $icon)
{
$options .= '<option value="'.$icon.'"'.($icon == $cat['data']['icon'] ? ' selected="1"':'').'>'.