Wordpress 3.6
[autoinstalls/wordpress.git] / wp-admin / includes / menu.php
index 14cadfa6f7afe8064537be69a3fdf0fb640a4cfe..e315c7666bf8d5402980307c1db22a03ddc38be6 100644 (file)
@@ -156,7 +156,7 @@ function add_menu_classes($menu) {
                        continue;
                }
 
-               if ( 0 === strpos($top[2], 'separator') ) { // if separator
+               if ( 0 === strpos($top[2], 'separator') && false !== $lastorder ) { // if separator
                        $first = true;
                        $c = $menu[$lastorder][4];
                        $menu[$lastorder][4] = add_cssclass('menu-top-last', $c);