fix: 🐛 fix post metadata fill-out failing on non-found posts

This commit is contained in:
David Bailey 2023-12-18 16:02:31 +01:00
parent 37357da4b0
commit 2ee294b012
2 changed files with 6 additions and 0 deletions

View file

@ -116,6 +116,8 @@ class MySQLAdapter {
$post_data = $this->_exec($qry, "s", $post_path)->fetch_assoc();
$post_data = $this->_normalize_post_data($post_data);
$post_data['post_path'] = $post_path;
if($with_subposts) {
$post_data['subposts'] = $this->get_subposts_by_path($post_path);
}