Support » Plugin: Lockdown WP Admin » Unwanted PHP notice on the frontend

  • Resolved James Bonham

    (@jamesbonham)


    I get a PHP notice on all frontend pages (WP 3.5.2, latest plugin version)…

    Notice: Undefined offset: 1 in **********/wp-content/plugins/lockdown-wp-admin/lockdown-wp-admin.php on line 571

    It’s because exploding the request url doesn’t always return a second item in the array. To fix it, you could do…

    lockdown-wp-admin.php, Line 571
    from…

    list( $base, $query ) = explode( '?', $request_url, 2 );

    to…

    $vars = explode( '?', $request_url, 2 );
    if( count( $vars ) == 2 )
      list( $base, $query ) = $vars;
    else
      $base = $vars[0];

    http://wordpress.org/extend/plugins/lockdown-wp-admin/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unwanted PHP notice on the frontend’ is closed to new replies.