diff --git a/e107_core/url/news/sef_noid_url.php b/e107_core/url/news/sef_noid_url.php index 72bf4336f..5ce292cd6 100644 --- a/e107_core/url/news/sef_noid_url.php +++ b/e107_core/url/news/sef_noid_url.php @@ -124,7 +124,7 @@ class core_news_sef_noid_url extends eUrlConfig // news/Category/Category-Name?page=xxx // news/Short/Category-Name?page=xxx $r[0] = $route[1] == 'category' ? 'Category' : 'Short'; - $r[1] = $params['name'] ? $params['name'] : $params['id']; + $r[1] = !empty($params['name']) ? $params['name'] : $params['id']; if($page) $parm = array('page' => $page); } break; diff --git a/e107_plugins/banner/banner_template.php b/e107_plugins/banner/banner_template.php index 602f274bf..b9ece302b 100644 --- a/e107_plugins/banner/banner_template.php +++ b/e107_plugins/banner/banner_template.php @@ -64,7 +64,8 @@ if(!isset($BANNER_TABLE))