From 4fa26c81e895abfcaffd19e66be9ba28d2dbbfda Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 May 2020 15:44:39 +0000 Subject: [PATCH] Fix for wrong table and wrong field name --- src/Model/Post/Category.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Post/Category.php b/src/Model/Post/Category.php index 680e32e3a..d4a8469d4 100644 --- a/src/Model/Post/Category.php +++ b/src/Model/Post/Category.php @@ -49,12 +49,12 @@ class Category { $file_text = ''; - $tags = DBA::selectToArray('post-category', ['type', 'name'], ['uri-id' => $uri_id, 'uid' => $uid]); + $tags = DBA::selectToArray('category-view', ['type', 'name'], ['uri-id' => $uri_id, 'uid' => $uid]); foreach ($tags as $tag) { if ($tag['type'] == self::CATEGORY) { - $file_text .= '<' . $tag['term'] . '>'; + $file_text .= '<' . $tag['name'] . '>'; } else { - $file_text .= '[' . $tag['term'] . ']'; + $file_text .= '[' . $tag['name'] . ']'; } }