mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Fix error in admin dashboard when getNewestCommentList() returns an object
Possible fix for https://xetown.com/questions/1821535 (not confirmed!)
This commit is contained in:
parent
9247e602b5
commit
b2ebb234ef
1 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,10 @@ class Dashboard extends Base
|
||||||
$value->content = strip_tags($value->content);
|
$value->content = strip_tags($value->content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$output = [];
|
||||||
|
}
|
||||||
Context::set('latestCommentList', $output);
|
Context::set('latestCommentList', $output);
|
||||||
unset($args, $output, $columnList);
|
unset($args, $output, $columnList);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue