]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/UserItem.php
Merge pull request #8558 from annando/corrected-view
[friendica.git] / src / Model / UserItem.php
index d38ed6d55e8d3518b95fb6081e8c86db3718b1d3..72db1005d10742bdf5c80871e17997d547bf6627 100644 (file)
@@ -207,13 +207,14 @@ class UserItem
                }
 
                // Or the contact is a mentioned forum
-               $tags = DBA::select('term', ['url'], ['otype' => term::OBJECT_TYPE_POST, 'oid' => $item['id'], 'type' => Term::MENTION, 'uid' => $uid]);
+               $tags = DBA::select('term', ['url'], ['otype' => Term::OBJECT_TYPE_POST, 'oid' => $item['id'], 'type' => Term::MENTION, 'uid' => $uid]);
                while ($tag = DBA::fetch($tags)) {
                        $condition = ['nurl' => Strings::normaliseLink($tag['url']), 'uid' => $uid, 'notify_new_posts' => true, 'contact-type' => Contact::TYPE_COMMUNITY];
                        if (DBA::exists('contact', $condition)) {
                                return true;
                        }
                }
+               DBA::close($tags);
 
                return false;
        }