Jump to content

vBulletin Problem - implode()


AncientSage

Recommended Posts

[code]Warning: implode() [function.implode]: Bad arguments. in /admincp/index.php on line 128[/code]

There is my error. The line is as follows:

[code]$vbulletin->GPC['navprefs'] = implode(',', $vbulletin->GPC['navprefs']);[/code]

The implode function should be working, given that it is an official vBulletin release. However, there seems to be something wrong with it (PHP version IS above required by vBulletin).

[code] $groups = explode(',', $vbulletin->GPC['groups']);

foreach ($groups AS $group)
{
if (empty($group))
{
continue;
}

$vbulletin->input->clean_gpc('r', "num$group", TYPE_UINT);

for ($i = 0; $i < $vbulletin->GPC["num$group"]; $i++)
{
$vbulletin->GPC['navprefs'][] = $group . "_$i";
}
}

$vbulletin->GPC['navprefs'] = implode(',', $vbulletin->GPC['navprefs']);[/code]

Help appreciated.
Link to comment
Share on other sites

could be something simple.. try changing that line to these 2 lines (the way I'd do it)

$navprefs = $vbulletin->GPC['navprefs'];
$vbulletin->GPC['navprefs'] = implode(',', $navprefs);

I'm thinking the problem is where the two single quotes are around 'navprefs' in the class, it's assuming thats where to start or something.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.