miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | 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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑