You must pass the forum id's as an
array to the
fetch_search_forumids() function. Make sure you read the code behind the function when you start using them, it will easily prevent you from getting these errors and also make understanding vBulletin a lot better.
If the
fetch_search_forumids() is a string you need to first
explode() the string into an array then pass this array to the function
N.B. You won't be able to do it inline as you must the variable by reference:
PHP Code:
$vbulletin->options['fids'] = explode(',', $vbulletin->options['fids']);
$outcome = fetch_search_forumids($vbulletin->options['fids']);
// implode the forum ids or whatever you want
Again I can't stress enough that you learn a heck of a lot about how a function works by just looking at the PHP code behind it.