Make WordPress Core


Ignore:
Timestamp:
12/20/2007 09:25:12 PM (17 years ago)
Author:
westi
Message:

Fix some of the notices visible with WP_DEBUG enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r6381 r6436  
    204204    $sidebars_widgets = wp_get_sidebars_widgets();
    205205
    206     if ( empty($wp_registered_sidebars[$index]) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
     206    if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
    207207        return false;
    208208
Note: See TracChangeset for help on using the changeset viewer.