From: Michael Date: Sun, 3 May 2020 15:44:39 +0000 (+0000) Subject: Fix for wrong table and wrong field name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4fa26c81e895abfcaffd19e66be9ba28d2dbbfda;p=friendica.git Fix for wrong table and wrong field name --- diff --git a/src/Model/Post/Category.php b/src/Model/Post/Category.php index 680e32e3ad..d4a8469d4f 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'] . ']'; } }