From b8bf2f7b2db4996b573d94ce2acb6a326814dd90 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 20 Jan 2014 14:25:18 +0000 Subject: [PATCH] Don't set icon_url if icon is not set. Fixes browser displaying missing image if Icon = 'none' --- admin/inc/class.admin_categories.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index c53ffcff54..8fc5f09f39 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -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();