songxingwei 3 سال پیش
والد
کامیت
a71ce5c75a
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      application/common/model/User.php

+ 6 - 1
application/common/model/User.php

@@ -1263,7 +1263,12 @@ class User Extends Model
 
             if ($touser['household']){
                 $household = explode('-',$touser['household']);
-                $touser['household_city'] = $household[1];
+                if (isset($household[1])){
+                    $touser['household_city'] = $household[1];
+                }else{
+                    $touser['household_city'] = '';
+                }
+
             }else{
                 $touser['household_city'] = '';
             }