PDA

View Full Version : Receiving an Error in Functions.php from the AdminCP


Shon
12-14-2004, 10:52 AM
I am getting this error when I try to edit a category in the admincp:
Warning: Invalid argument supplied for foreach() in /home/gamedog/public_html/forums/includes/functions.php on line 2965
When I save the category with this error, it doesn't save any of the options that I have set, it makes all of the options set to no :(

Shon
12-15-2004, 05:44 PM
Any help with this? I don't think the error is in functions.php but here are lines 2961 - 2978:function convert_bits_to_array(&$bitfield, $_FIELDNAMES)
{
$bitfield = intval($bitfield);
$arry = array();
foreach ($_FIELDNAMES AS $field => $bitvalue)
{
if ($bitfield & $bitvalue)
{
$arry["$field"] = 1;
}
else

{
$arry["$field"] = 0;
}
}
return $arry;
}

Our Sponsors
 

Brian
12-16-2004, 11:21 AM
Please download the current version from here, upload the links/links_global.php and forum/includes/functions_links.php that are in the package, and that should take care of the problem.

Shon
12-16-2004, 01:20 PM
Thanks Brian, that fixed it :)