mirror of
https://github.com/friendica/friendica
synced 2024-12-23 18:40:16 +00:00
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 = '';
|
$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'] . ']';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue