squidsk |
10-21-2013 09:51 PM |
Quote:
Originally Posted by FF|Skyrider
(Post 2454809)
Thanks for the reply, I shall refrain from using apostrophe. Though I do wish to report another bug / issue or miscalculation.
I've set a new automation on usergroup 6 (administrators). In total, 14 users are gaining the rewards, while there are only 6 people in the administration group. Te other 8 are moderators, super moderators and other custom groups members.
So why have they been given the award while they are not within Usergroup ID 6? They are not even in GroupID 6 as Additional users.
|
Looking at the code it appears that it will give the award to, in your case, anyone who's a member of a group with a 6 in its id (i.e. 6, 16, 26, etc).
The solution is to change line 62 of includes/cron/award_automation.php as follows:
From:
Code:
OR membergroupids LIKE '%".$usergroupAwardsArray[auto_criteria]."%'
To:
Code:
OR " . $usergroupAwardsArray[auto_criteria] . " IN (membergroupids)
Note: I haven't tried this out but it should work.
|