Make WordPress Core

Changeset 18038


Ignore:
Timestamp:
05/25/2011 04:46:40 PM (15 years ago)
Author:
ryan
Message:

Fix notices. Props ocean90. fixes #17528

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/menu.php

    r18034 r18038  
    105105    // If there is only one submenu and it is has same destination as the parent,
    106106    // remove the submenu.
    107     if ( 1 == count ( $submenu[$data[2]] ) ) {
     107    if ( ! empty( $submenu[$data[2]] ) && 1 == count ( $submenu[$data[2]] ) ) {
    108108        $subs = $submenu[$data[2]];
    109109        $first_sub = array_shift($subs);
Note: See TracChangeset for help on using the changeset viewer.