Skip to content

Commit

Permalink
FIX block atrium-account
Browse files Browse the repository at this point in the history
  • Loading branch information
emaV committed Mar 16, 2012
1 parent 20905cb commit 61926fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atrium_username.theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ function atrium_username_preprocess_block(&$variables) {
if($variables['block']->bid == "atrium-account") {
global $user;
if ($user->uid) {
$atrium_username = atrium_username_get_name($uid);
$name = $atrium_username ? $atrium_username : check_plain($user->name);
$variables['block']->subject = theme('user_picture', $user) . atrium_username_get_name($user->uid);
$atrium_username = atrium_username_get_name($uid);
$user_name = $atrium_username ? $atrium_username : check_plain($user->name);
$variables['block']->subject = theme('user_picture', $user) . $user_name;
}
}
}
Expand Down

0 comments on commit 61926fb

Please sign in to comment.