Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.573
diff -u -r1.573 theme.inc
--- includes/theme.inc	7 Feb 2010 09:11:28 -0000	1.573
+++ includes/theme.inc	9 Feb 2010 00:25:52 -0000
@@ -2021,33 +2021,41 @@
     $variables['uid'] = (int)$account->uid;
   }
 
-  // Set the name to a formatted name that is safe for printing and
-  // that won't break tables by being too long. Keep an unshortened,
-  // unsanitized version, in case other preprocess functions want to implement
-  // their own shortening logic or add markup. If they do so, they must ensure
-  // that $variables['name'] is safe for printing.
-  $name = $variables['name_raw'] = format_username($account);
-  if (drupal_strlen($name) > 20) {
-    $name = drupal_substr($name, 0, 15) . '...';
-  }
-  $variables['name'] = check_plain($name);
-
-  $variables['profile_access'] = user_access('access user profiles');
-  $variables['link_attributes'] = array();
-  // Populate link path and attributes if appropriate.
-  if ($variables['uid'] && $variables['profile_access']) {
-    // We are linking to a local user.
-    $variables['link_attributes'] = array('title' => t('View user profile.'));
-    $variables['link_path'] = 'user/' . $variables['uid'];
-  }
-  elseif (!empty($account->homepage)) {
-    // Like the 'class' attribute, the 'rel' attribute can hold a
-    // space-separated set of values, so initialize it as an array to make it
-    // easier for other preprocess functions to append to it.
-    $variables['link_attributes'] = array('rel' => array('nofollow'));
-    $variables['link_path'] = $account->homepage;
-    $variables['homepage'] = $account->homepage;
+  if (empty($account->deleted)) {
+  
+    // Set the name to a formatted name that is safe for printing and
+    // that won't break tables by being too long. Keep an unshortened,
+    // unsanitized version, in case other preprocess functions want to implement
+    // their own shortening logic or add markup. If they do so, they must ensure
+    // that $variables['name'] is safe for printing.
+    $name = $variables['name_raw'] = format_username($account);
+    if (drupal_strlen($name) > 20) {
+      $name = drupal_substr($name, 0, 15) . '...';
+    }
+    $variables['name'] = check_plain($name);
+
+    $variables['profile_access'] = user_access('access user profiles');
+    $variables['link_attributes'] = array();
+    // Populate link path and attributes if appropriate.
+    if ($variables['uid'] && $variables['profile_access']) {
+      // We are linking to a local user.
+      $variables['link_attributes'] = array('title' => t('View user profile.'));
+      $variables['link_path'] = 'user/' . $variables['uid'];
+    }
+    elseif (!empty($account->homepage)) {
+      // Like the 'class' attribute, the 'rel' attribute can hold a
+      // space-separated set of values, so initialize it as an array to make it
+      // easier for other preprocess functions to append to it.
+      $variables['link_attributes'] = array('rel' => array('nofollow'));
+      $variables['link_path'] = $account->homepage;
+      $variables['homepage'] = $account->homepage;
+    }
+  }
+  else {
+    $variables['name'] = t('Deleted user');
+    $variables['extra'] = ' (uid: ' . $variables['uid'] . ')';
   }
+  
   // We do not want the l() function to check_plain() a second time.
   $variables['link_options']['html'] = TRUE;
   // Set a default class.
Index: modules/dblog/dblog.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/dblog/dblog.admin.inc,v
retrieving revision 1.34
diff -u -r1.34 dblog.admin.inc
--- modules/dblog/dblog.admin.inc	6 Feb 2010 14:50:05 -0000	1.34
+++ modules/dblog/dblog.admin.inc	9 Feb 2010 00:25:52 -0000
@@ -59,6 +59,10 @@
     ->execute();
 
   foreach ($result as $dblog) {
+  
+    if ($dblog->uid && !$dblog->name)
+      $dblog->deleted = TRUE;
+  
     $rows[] = array('data' =>
       array(
         // Cells
