Fix for wrong table and wrong field name
This commit is contained in:
parent
875d6b36e9
commit
4fa26c81e8
1 changed files with 3 additions and 3 deletions
|
@ -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'] . ']';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue