PDA

View Full Version : problem with conditional


Booyakan
04-19-2011, 03:47 PM
I am trying to use this conditional in my showthread.php but it just seems to ignore the second part of the statement. It will not allow ANY usergroups to view thread #400. Is this code wrong or am I missing something? I only want usergroups 12 and 10 to be able to view the thread.

if ($threadinfo['threadid'] == 400 AND !is_member_of($bbuserinfo, 12, 10))
{
print_no_permission();
}

Lynne
04-19-2011, 04:51 PM
if ($threadinfo['threadid'] == 400 AND !is_member_of($vbulletin->userinfo, 12, 10))
{
print_no_permission();
}

Booyakan
04-19-2011, 05:00 PM
That worked, thank you Lynne!