Don't set icon_url if icon is not set.

Fixes browser displaying missing image if Icon = 'none'
This commit is contained in:
Nathan Gray 2014-01-20 14:25:18 +00:00
parent bad85f749a
commit b8bf2f7b2d

View File

@ -197,7 +197,10 @@ class admin_categories
}
$content['msg'] = $msg;
if(!$content['appname']) $content['appname'] = $appname;
$content['icon_url'] = $content['base_url'] . $content['data']['icon'];
if($content['data']['icon'])
{
$content['icon_url'] = $content['base_url'] . $content['data']['icon'];
}
$sel_options['icon'] = self::get_icons();
$sel_options['owner'] = array();