dever 6 years ago
parent
commit
a8b1376c34
1 changed files with 6 additions and 1 deletions
  1. 6 1
      main/src/User.php

+ 6 - 1
main/src/User.php

@@ -66,7 +66,12 @@ class User extends Core
         if ($this->data['like']) {
             foreach ($this->data['like'] as $k => $v) {
                 $this->data['like'][$k]['cdate_time'] = date('Y-m-d H:i:s', $v['cdate']);
-                $this->data['like'][$k]['info'] = $this->content($v);
+                if ($v) {
+                    $this->data['like'][$k]['info'] = $this->content($v);
+                } else {
+                    $this->data['like'][$k]['info'] = (object) array();
+                }
+                
             }
         }
         return $this->data;