sabret00the |
11-28-2003 01:11 PM |
call to undefined function, why?
ok this has baffled me, i was suggested using this method to get it to pick between user groups, only problem is, is that it doesn't seem to know the array, i thought the user group array would've been defined in the global, how else can i go about getting it to work?
PHP Code:
if ($confessionid!='') { $clause="WHERE confessionid = $confessionid "; $num=0; $limit='LIMIT 1'; if ($bbuserinfo[usergroupid] == 6) { eval("\$adminoptions = \"".gettemplate("confession_adminoptions",1,0)."\";"); eval("\$report = \"".gettemplate("confession_report",1,0)."\";"); eval("\$rate = \"".gettemplate("confession_rate",1,0)."\";"); } else if($bbuserinfo[usergroupid("2","5","7","12")]) { eval("\$report = \"".gettemplate("confession_report",1,0)."\";"); eval("\$rate = \"".gettemplate("confession_rate",1,0)."\";"); } else { eval("\$report = \"".gettemplate("confession_report",1,0)."\";"); } }
ps. this is the line that seems to be messing everything up
PHP Code:
} else if($bbuserinfo[usergroupid("2","5","7","12")]) {
|