I have a little problem with this mentioned function.
Once in a week our members are checked if they are still in the correct group.
If they are not in the correct group they were removed from the individuell group and the default group must set to "registered users".
And there is the problem.
I receive the following error when I start the script:
PHP Fatal error: Call to a member function sql_in_set() on null in...../includes/functions_user.php on line 2814
The variable "$forum_group_name" ist the name of the individuell group where the member must remove from.
My code looks like so:
Code: Select all
group_user_del($forum_groupid, $forum_userid, $forum_username, $forum_group_name, true);
Has anybody an idea what I make wrong?