Fix for wrong table and wrong field name

This commit is contained in:
Michael 2020-05-03 15:44:39 +00:00
parent 875d6b36e9
commit 4fa26c81e8

View file

@ -49,12 +49,12 @@ class Category
{ {
$file_text = ''; $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) { foreach ($tags as $tag) {
if ($tag['type'] == self::CATEGORY) { if ($tag['type'] == self::CATEGORY) {
$file_text .= '<' . $tag['term'] . '>'; $file_text .= '<' . $tag['name'] . '>';
} else { } else {
$file_text .= '[' . $tag['term'] . ']'; $file_text .= '[' . $tag['name'] . ']';
} }
} }