[[function.array-key-exists] after upgrade to php7
-
I just changed to php7 base on recommendation on wordpress dashboard.
now im getting these 2 messages on the top of wordpress dashboard:[function.array-key-exists]: The second argument should be either an array or an object in /home4/fitxcana/public_html/wp-content/plugins/leadin/admin/leadin-admin.php on line 79
The line shows (starting line 79):
if (!array_key_exists(‘li_grant_access_to_’ . leadin_get_user_role(), $options))
return FALSE;
else {
if (current_user_can(‘manage_network’)) // super admin
$capability = ‘manage_network’;
else if (current_user_can(‘edit_pages’)) // editor
$capability = ‘edit_pages’;
else if (current_user_can(‘publish_posts’)) // author
$capability = ‘publish_posts’;
else if (current_user_can(‘edit_posts’)) // contributor
$capability = ‘edit_posts’;
else if (current_user_can(‘read’)) // subscriber
$capability = ‘read’;Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home4/fitxcana/public_html/wp-content/plugins/leadin/inc/class-leadin.php on line 97
Starting line 97:
if (!array_key_exists(‘li_grant_access_to_’ . leadin_get_user_role(), get_option(‘leadin_options’)))
return FALSE;I’m not sure what’s wrong with these. please help.
The page I need help with: [log in to see the link]
- The topic ‘[[function.array-key-exists] after upgrade to php7’ is closed to new replies.