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
https://forums.phpfreaks.com/topic/22037-vbulletin-problem-implode/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.