songxingwei %!s(int64=3) %!d(string=hai) anos
pai
achega
a71ce5c75a
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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'] = '';
             }