mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
issue #3277: fixed conditional for user_forum_topic_created_probationary event
This commit is contained in:
@@ -988,7 +988,7 @@ class e107forum
|
|||||||
$triggerData['post_id'] = $newPostId;
|
$triggerData['post_id'] = $newPostId;
|
||||||
|
|
||||||
|
|
||||||
if (e107::getDb()->count('forum_post', '(post_id)', 'WHERE post_user = "'.USERID.'"') > 0)
|
if (e107::getDb()->count('forum_post', '(post_id)', 'WHERE post_user = "'.USERID.'"') > 1)
|
||||||
{
|
{
|
||||||
e107::getEvent()->trigger('user_forum_topic_created', $triggerData);
|
e107::getEvent()->trigger('user_forum_topic_created', $triggerData);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user