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:
Kijin Sung 2024-04-25 11:55:28 +09:00
parent 9247e602b5
commit b2ebb234ef

View file

@ -64,6 +64,10 @@ class Dashboard extends Base
$value->content = strip_tags($value->content);
}
}
else
{
$output = [];
}
Context::set('latestCommentList', $output);
unset($args, $output, $columnList);