Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1211)
+++ branches/2.8.x/CHANGELOG	(revision 1212)
@@ -11,6 +11,9 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.1 -------------------------------------
+12-DEC-2009 Manuel Lang	(MaGnaL)
+#	Bugfix of rev. 1211 search_modext.php (ticket #863): Use isset and
+	given unknown-user instead of counting all users. 
 12-Dez-2009 Dietrich Roland Pehlke (Aldus)
 #	Bugfix inside "search_modext.php" to avoid warings if the search found
 	a page last modified by a user witch has been deleted. (ticket #863)
Index: branches/2.8.x/wb/search/search_modext.php
===================================================================
--- branches/2.8.x/wb/search/search_modext.php	(revision 1211)
+++ branches/2.8.x/wb/search/search_modext.php	(revision 1212)
@@ -52,13 +52,12 @@
 // make username and displayname for "last modified by... on ..."-string
 function get_page_modified_by($page_modified_by, $users) {
 	global $TEXT;
-	if ( ($page_modified_by > 0) && (count($users) > $page_modified_by) ) {
-			$username = $users[$page_modified_by]['username'];
-			$displayname = $users[$page_modified_by]['display_name'];
-		} else {
-			$username = "";
-			$displayname = $TEXT['UNKNOWN'];
-		}
+	// check for existing user-id
+	if(!isset($users[$page_modified_by]))
+		$page_modified_by = 0;
+	
+	$username = $users[$page_modified_by]['username'];
+	$displayname = $users[$page_modified_by]['display_name'];
 	return array($username, $displayname);
 }
 
