Commit 51abe8f9 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix mysql bug in forum/topic subscriber query


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 9a7bd415
...@@ -473,9 +473,9 @@ class ActivityTypeInteractionForumNewPost extends ActivityTypePlugin { ...@@ -473,9 +473,9 @@ class ActivityTypeInteractionForumNewPost extends ActivityTypePlugin {
} }
$subscribers = get_records_sql_assoc(' $subscribers = get_records_sql_assoc('
SELECT "user" AS subscriber, \'topic\' AS type, key FROM {interaction_forum_subscription_topic} WHERE topic = ? SELECT "user" AS subscriber, \'topic\' AS type, "key" FROM {interaction_forum_subscription_topic} WHERE topic = ?
UNION UNION
SELECT "user" AS subscriber, \'forum\' AS type, key FROM {interaction_forum_subscription_forum} WHERE forum = ? SELECT "user" AS subscriber, \'forum\' AS type, "key" FROM {interaction_forum_subscription_forum} WHERE forum = ?
ORDER BY type', ORDER BY type',
array($post->topicid, $post->forumid) array($post->topicid, $post->forumid)
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment