WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Access Manager
warning at line 521 of mvb_wp_access.php (1 post)

  1. slightlydifferent
    Member
    Posted 1 year ago #

    I am seeing a warning as follows:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in xxxxxx/mvb_wp_access.php on line 521

    Solved by changing:
    if (isset($query->query_vars['post__not_in'])) {
    $query->query_vars['post__not_in'] = array_merge($query->query_vars['post__not_in'], $r_posts);
    } else {
    $query->query_vars['post__not_in'] = $r_posts;
    }

    To:
    if (isset($query->query_vars['post__not_in']) && is_array($query->query_vars['post__not_in'])) {
    $query->query_vars['post__not_in'] = array_merge($query->query_vars['post__not_in'], $r_posts);
    } else {
    $query->query_vars['post__not_in'] = $r_posts;
    }

    http://wordpress.org/extend/plugins/advanced-access-manager/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by slightlydifferent
  • This topic is not resolved
  • WordPress version: 3.5.1