mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-14 13:46:33 +02:00
Merge pull request #3659 from Elsensee/ticket/12230
[ticket/12230] Disable newly registered group when post limit is set to 0
This commit is contained in:
@ -1585,7 +1585,7 @@ class session
|
|||||||
|
|
||||||
$this->data = array_merge($this->data, $sql_ary);
|
$this->data = array_merge($this->data, $sql_ary);
|
||||||
|
|
||||||
if ($this->data['user_id'] != ANONYMOUS && !empty($config['new_member_post_limit']) && $this->data['user_new'] && $config['new_member_post_limit'] <= $this->data['user_posts'])
|
if ($this->data['user_id'] != ANONYMOUS && isset($config['new_member_post_limit']) && $this->data['user_new'] && $config['new_member_post_limit'] <= $this->data['user_posts'])
|
||||||
{
|
{
|
||||||
$this->leave_newly_registered();
|
$this->leave_newly_registered();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user