--- temp/userprotect/userprotect.module	2008-04-07 02:49:29.000000000 +0200
+++ userprotect/userprotect.module	2008-09-11 12:44:49.000000000 +0200
@@ -955,6 +955,7 @@ function userprotect_get_protection_disp
  * @return A text string representing the current protections.
  */
 function userprotect_display_protections($account, $protected) {
+  global $user;
 
   // Get the protections display text.
   $display = userprotect_get_protection_display();
@@ -966,7 +967,7 @@ function userprotect_display_protections
   	$protections[] = $display[$protection];
   }
   // Display if there are protections and it's an admin user.
-  if (count($protections) && user_access('administer users')) {
+  if (count($protections) && $user->roles && user_access('administer users')) {
     $output = t('%user has been protected from the following editing operations: !operations', array('%user' => $account->name, '!operations' => implode(', ', $protections)));
   }
   else {
@@ -1128,4 +1129,4 @@ function userprotect_get_user_protection
 
   // No protection enabled.
   return FALSE;
-}
\ No newline at end of file
+}

