I'm running IPB 2.2.0 RC3 and I'm getting this error with the member's profile pages
IPB WARNING [2] Invalid argument supplied for foreach() (Line: 2631 of /sources/action_public/profile.php)
and here's the code that it's in
//-----------------------------------------
// Pips / Icon
//-----------------------------------------
foreach( $this->ipsclass->cache['ranks'] as $k => $v )
{
if ( $member['posts'] >= $v['POSTS'] )
{
if ( ! $member['title'] )
{
$member['_title'] = $this->ipsclass->cache['ranks'][ $k ]['TITLE'];
}
$pips = $v['PIPS'];
break;
I've re-added the script everal times and it's not fixing it 🙁
EDIT: Sorry! I posted this in the wrong forum! This should be in PHP help forum.