1
1
Fork 0

Merge pull request #8776 from annando/annando/issue8766

Categories are not showing up at the bottom of the post
This commit is contained in:
Hypolite Petovan 2020-06-15 09:04:38 -04:00 committed by GitHub
commit 6792eada0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,15 +73,13 @@ class Category
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
{
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
if (!DBA::isResult($message)) {
return;
}
if (DBA::isResult($message)) {
// Clean up all tags
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
// Clean up all tags
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
if ($message['deleted']) {
return;
if ($message['deleted']) {
return;
}
}
if (preg_match_all("/\[(.*?)\]/ism", $files, $result)) {