Merge branch 'develop' of http://git.dev.yoho.cn/web/yohood into develop
Showing
1 changed file
with
6 additions
and
1 deletions
@@ -270,7 +270,12 @@ class Facade_News | @@ -270,7 +270,12 @@ class Facade_News | ||
270 | public static function getSameNewsById($id, $exceptTags = array()) | 270 | public static function getSameNewsById($id, $exceptTags = array()) |
271 | { | 271 | { |
272 | $ids = Facade_Brand::getSameNewsByNewsID($id); | 272 | $ids = Facade_Brand::getSameNewsByNewsID($id); |
273 | - return self::service()->getNewsByOrderId($ids, $exceptTags); | 273 | + $news = array(); |
274 | + if(!empty($ids)) | ||
275 | + { | ||
276 | + $news = self::service()->getNewsByOrderId($ids, $exceptTags); | ||
277 | + } | ||
278 | + return $news; | ||
274 | } | 279 | } |
275 | 280 | ||
276 | /** | 281 | /** |
-
Please register or login to post a comment