Quote:
Originally Posted by Paul M
That won't work.
Try changing this ;
PHP Code:
$report_foruminfo = fetch_foruminfo($vbulletin->options['reportforum']);
to this;
PHP Code:
if ($foruminfo['forumid'] == 16) { $report_foruminfo = fetch_foruminfo(142); } else { $report_foruminfo = fetch_foruminfo($vbulletin->options['reportforum']); }
|
thx but i get this then:
Fatal error: Only variables can be passed by reference in
/home/xxx/apache/htdocs/vbulletin/report.php(176) : eval()'d code on line
3
Found it, seems to be a php glitch.
Workaround:
PHP Code:
$foruminstead = 142;
if ($foruminfo['forumid'] == 16)
{
$report_foruminfo = fetch_foruminfo($foruminstead);
}
else
{
$report_foruminfo = fetch_foruminfo($vbulletin->options['reportforum']);
}