Argument #2 should be an array in
-
Hello,
I’ve bought premium version and I have problem. On my website shows error:
Warning: array_map() [function.array-map]: Argument #2 should be an array in /grupa-instalbud/wp-content/plugins/fixed-circular-navigation-menu/public/class-circular-nav.php on line 312Warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in /grupa-instalbud/wp-content/plugins/fixed-circular-navigation-menu/public/class-circular-nav.php on line 313
These are the lines:
$cn_data = get_option(‘circular_nav_options’);if ( !empty($cn_data) ){
$user_cn = wp_get_current_user();
if ( !empty( $user_cn ) ){
$user_cn_roles = array_map(‘strtolower’, $user_cn->roles);
(THIS IS 312) $allowed_roles = array_map(‘strtolower’, $cn_data[‘roles’]);
(THIS IS 313) $ok_role = array_intersect( $user_cn_roles, $allowed_roles );
}Please help!
https://www.ads-software.com/plugins/fixed-circular-navigation-menu/
- The topic ‘Argument #2 should be an array in’ is closed to new replies.