miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Re-cycled miniBB Support Forums / Re-cycled /   

bug when adding moderators

Author myowndictionary.com
Guest
#1 | Posted: 3 Nov 2006 12:45 
the line is line 311 in 2.0RC in index.php

$isMod=($forum!=0 and isset($mods) and isset($mods[$forum]) and in_array($user_id,$mods[$forum]))?1:0;



isset($mods) should be is_array($mods[$forum]) because if we are not using moderators per forum, it is still possible that mods[1] is set simply by the user_id of a moderator!

This is an easy fix.

Author Paul
Lead Developer
#2 | Posted: 3 Nov 2006 15:14 
We have a moderators definition format, and there is nothing to fix - you must specify moderators as array variable anyway.

Author myowndictionary.com
Guest
#3 | Posted: 3 Nov 2006 21:01 
The problem is only for people who don't read the manual and modify $mods=array(); to just include their admin id and the id of a friend, so they simply write $mods=array(9,12); or something and don't read the manual. But, it'snot your fault if the user doesn't read the manual, i know!!!

Author Paul
Lead Developer
#4 | Posted: 4 Nov 2006 11:32 
it's not your fault if the user doesn't read the manual, i know - yes, it's not :-)

Re-cycled miniBB Support Forums / Re-cycled / bug when adding moderators Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB