dever 4 years ago
parent
commit
746c88fdad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Info.php

+ 1 - 1
lib/Info.php

@@ -364,7 +364,7 @@ class Info
             $where['goods_area'] = $info['goods_area'];
         }
         # 用户所在地理位置 
-        if ($user && $user['area_id']) {
+        if ($user && isset($user['area_id']) && $user['area_id']) {
             $area = explode(',', $user['area_id']);
             $where['area'] = $area[0];
         }