View Full Version : 2.5.5 When Creating A Tounament In Modcp
Feckie (Roger)
03-30-2006, 08:16 PM
When Creating A Tounament In Modcp
Warning: Invalid argument supplied for foreach() in /arcade/modules/mod_modcp.php on line 717
MrZeropage
03-31-2006, 04:31 AM
did you replace all Files to v2.5.5+ ?
Feckie (Roger)
03-31-2006, 05:20 AM
did you replace all Files to v2.5.5+ ?
Yes uploaded all the file and replaced
Neo_obs
03-31-2006, 06:50 AM
$dbstring="";
$i = 0;
foreach($ibforums->input['users'] as $value)
{
$user = intval($value);
if($user == 0)
{
$return .= $main->html->error($ibforums->lang['id_greater_zero']);
return $return;
}
$dbstring .= ($i) ? ", ".$user : $user;
$i++;
}
this is the string i found and line 717 is
foreach($ibforums->input['users'] as $value)
im not sure what the error is
----------------------------------------------
wait i think i figured a work around.
above this there is a code like this
/*
if( $ibforums->input['users'] == "" )
{
$ibforums->input['users'] = array();
}
*/
if you take out the /* and */ in the begining and end it will take you back to the modcp and not give you an error
why was that blocked out? should i have done that?
Feckie (Roger)
04-02-2006, 01:12 PM
OK done that and it works a treat.........
Thanks for your help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.