Index: class-wp-admin-bar.php
===================================================================
--- class-wp-admin-bar.php	(revision 16099)
+++ class-wp-admin-bar.php	(working copy)
@@ -121,7 +121,7 @@
 				echo ' ' . $menu_item['meta']['class'];
 			endif; 
 		?>">
-			<a href="<?php echo strip_tags( $menu_item['href'] ) ?>"<?php 
+			<?php if ( !empty( $menu_item['href'] ) ) : ?><a href="<?php echo strip_tags( $menu_item['href'] ) ?>"<?php 
 				if ( ! empty( $menu_item['meta']['onclick'] ) ) :
 					?> onclick="<?php echo $menu_item['meta']['onclick']; ?>"<?php 
 				endif;
@@ -134,14 +134,16 @@
 			if ( ! empty( $menuclass ) ) : 
 				?><span><?php 
 			endif; 
+			endif; 
 			
 			echo $menu_item['title'];
 			
+			if ( ! empty( $menu_item['href'] ) ) :
 			if ( ! empty( $menuclass ) ) : 
 				?></span><?php 
 			endif; 
 			
-			?></a>
+			?></a><?php endif; ?>
 
 			<?php if ( ! empty( $menu_item['children'] ) ) : ?>
 			<ul>
