diff --git a/yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php b/yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php index 45ea23b..2c6ccc7 100644 --- a/yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php +++ b/yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php @@ -39,8 +39,10 @@ class ListController extends WebAction 'rowNum' => FILTER_VALIDATE_INT, 'page' => FILTER_VALIDATE_INT), false); //字符转码 - foreach($condition as $key => $val){ - $condition[$key] = rawurldecode($val); + if (!empty($condition)) { + foreach ($condition as $key => $val) { + $condition[$key] = rawurldecode($val); + } } //性別(频道) $gender_cookie = !isset($_COOKIE['_Gender']) ? '3' : ($_COOKIE['_Gender']=='2,3' ? 2 : 1);