Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: sambauers said: Problem with automated role mapping is now fixed in trunk

@ganzua

Member

how? Where? I think I have everthing setup okay, but everyones account on the bbpress side states:

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/user/public_html/forums/bb-includes/functions.bb-template.php on line 2009

This problem comes from 1.04. I have the same error whenever I want to edit an user;

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in D:wampwwwwordpressbbpressbb-includesfunctions.bb-template.php on line 2009

In line 2008 is this code;

// Keymasters can't demote themselves
if ( ( $bb_current_id == $user->ID && $can_keep_gate ) || ( array_key_exists('keymaster', $user->capabilities) && !$can_keep_gate ) )
$roles = array( 'keymaster' => $roles['keymaster'] );
elseif ( !$can_keep_gate ) // only keymasters can promote others to keymaster status
unset($roles['keymaster']);

Skip to toolbar