From 596bb3615117fc67b0b8d52570f19acf90fc94a9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 22 Oct 2017 09:02:54 +0000 Subject: [PATCH] Bugfix: The selection between posts from forums and other users had a problem --- include/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Contact.php b/include/Contact.php index 88f588e2f6..8be873bd30 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -803,7 +803,7 @@ function posts_from_contact_url(App $a, $contact_url) { $author_id = intval($r[0]["author-id"]); - $contact = ($r[0]["contact-type"] = ACCOUNT_TYPE_COMMUNITY ? 'owner-id' : 'author-id'); + $contact = ($r[0]["contact-type"] == ACCOUNT_TYPE_COMMUNITY ? 'owner-id' : 'author-id'); $r = q(item_query()." AND `item`.`".$contact."` = %d AND ".$sql. " ORDER BY `item`.`created` DESC LIMIT %d, %d",