Fix warning. see #11644

git-svn-id: https://develop.svn.wordpress.org/trunk@12843 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-01-26 17:54:45 +00:00
parent 7acbca8e8e
commit 8dd260e7cf
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ if ( !empty($update_plugins->response) )
$update_count = count( $update_plugins->response );
$menu_perms = get_site_option('menu_items', array());
if ( is_super_admin() || is_multisite() && $menu_perms['plugins'] ) {
if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $menu_perms['plugins'] ) ) {
$menu[65] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top', 'menu-plugins', 'div' );
$submenu['plugins.php'][5] = array( __('Installed'), 'activate_plugins', 'plugins.php' );
/* translators: add new plugin */