Index: masquerade.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/masquerade/masquerade.module,v
retrieving revision 1.15.2.9
diff -u -F^f -r1.15.2.9 masquerade.module
--- masquerade.module	11 Jul 2008 20:33:03 -0000	1.15.2.9
+++ masquerade.module	21 Jul 2008 19:53:57 -0000
@@ -227,9 +227,9 @@ function masquerade_block_1($record) {
     $masquerade_switches = variable_get('masquerade_quick_switches', array());
     foreach ($masquerade_switches as $switch_user) {
       if ($switch_user != $GLOBALS['user']) {
-        $user_name = user_load(array('uid' => $switch_user))->name;
-        if ($user_name) {
-          $quick_switch_link[] = l($user_name, 'masquerade/switch/'. $switch_user);
+        $user = user_load(array('uid' => $switch_user));
+        if ($user->name) {
+          $quick_switch_link[] = l($user->name, 'masquerade/switch/'. $switch_user);
         }
       }
     }
