|
@@ -66,7 +66,12 @@ class User extends Core
|
|
if ($this->data['like']) {
|
|
if ($this->data['like']) {
|
|
foreach ($this->data['like'] as $k => $v) {
|
|
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]['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;
|
|
return $this->data;
|