MyBB Community Forums

Full Version: [F] portal bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys..
I just found a bug in the portal setting
go to acp and set the Forum ID to pull announcements from to blank (don't enter any number)

save the setting and try to go to the portal.php
you will get the following error.
MySQL error: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Query: SELECT COUNT(tid) AS newann FROM mybb_threads WHERE dateline>'1176059442' AND fid IN ()

thnx
Well you're kind of expected to put in a number Toungue But I'll fix it since it's a simple fix...
yes I know there is must be a number Toungue...
but not all of the users know that Wink
so there is must be a little fix
that make "" ="0" or whene Forum ID to pull announcements from = blank display a normaly error msg to tell the admin he must enter a number Toungue
This bug has been fixed in the latest code.

Please note the latest code is not live on the site or for download. An update will be released which contains this fix.