fix: 🐛 fix post metadata fill-out failing on non-found posts
This commit is contained in:
parent
37357da4b0
commit
2ee294b012
2 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,10 @@ class PostHandler extends MySQLAdapter {
|
|||
function _normalize_post_data($post_data) {
|
||||
$post_data = parent::_normalize_post_data($post_data);
|
||||
|
||||
if(!$post_data['found']) {
|
||||
return $post_data;
|
||||
}
|
||||
|
||||
$post_data["post_basename"] = basename($post_data["post_path"]);
|
||||
|
||||
$post_meta = $post_data['post_metadata'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue