Merge pull request #8776 from annando/annando/issue8766
Categories are not showing up at the bottom of the post
This commit is contained in:
commit
6792eada0a
1 changed files with 6 additions and 8 deletions
|
@ -73,15 +73,13 @@ class Category
|
||||||
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
|
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
|
||||||
{
|
{
|
||||||
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
|
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||||
if (!DBA::isResult($message)) {
|
if (DBA::isResult($message)) {
|
||||||
return;
|
// Clean up all tags
|
||||||
}
|
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||||
|
|
||||||
// Clean up all tags
|
if ($message['deleted']) {
|
||||||
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
|
return;
|
||||||
|
}
|
||||||
if ($message['deleted']) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match_all("/\[(.*?)\]/ism", $files, $result)) {
|
if (preg_match_all("/\[(.*?)\]/ism", $files, $result)) {
|
||||||
|
|
Loading…
Reference in a new issue