AncientSage Posted September 25, 2006 Share Posted September 25, 2006 [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. Quote Link to comment https://forums.phpfreaks.com/topic/22037-vbulletin-problem-implode/ Share on other sites More sharing options...
Jocka Posted September 26, 2006 Share Posted September 26, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/22037-vbulletin-problem-implode/#findComment-99123 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.