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:
Marc Alexander 2016-08-28 00:12:43 +02:00
commit 863d65112b

View file

@ -1585,7 +1585,7 @@ class session
$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();
}