Merge pull request #1 from illuxio/patch-1
Fix Nickname and DECT bug in settings.
This commit is contained in:
commit
946e3292d0
|
@ -103,12 +103,12 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel
|
||||||
$shift_info .= '<br><b>' . $needed_angel_type['name'] . ':</b> ';
|
$shift_info .= '<br><b>' . $needed_angel_type['name'] . ':</b> ';
|
||||||
|
|
||||||
$shift_entries = array();
|
$shift_entries = array();
|
||||||
foreach ($needed_angel_type['users'] as $user_source) {
|
foreach ($needed_angel_type['users'] as $user_shift) {
|
||||||
if ($its_me)
|
if ($its_me)
|
||||||
$member = '<strong>' . User_Nick_render($user_source) . '</strong>';
|
$member = '<strong>' . User_Nick_render($user_shift) . '</strong>';
|
||||||
else
|
else
|
||||||
$member = User_Nick_render($user_source);
|
$member = User_Nick_render($user_shift);
|
||||||
if ($user_source['freeloaded'])
|
if ($user_shift['freeloaded'])
|
||||||
$member = '<strike>' . $member . '</strike>';
|
$member = '<strike>' . $member . '</strike>';
|
||||||
|
|
||||||
$shift_entries[] = $member;
|
$shift_entries[] = $member;
|
||||||
|
@ -273,4 +273,4 @@ function User_Nick_render($user_source) {
|
||||||
return '<a href="' . page_link_to('users') . '&action=view&user_id=' . $user_source['UID'] . '"><span class="icon-icon_angel"></span> ' . htmlspecialchars($user_source['Nick']) . '</a>';
|
return '<a href="' . page_link_to('users') . '&action=view&user_id=' . $user_source['UID'] . '"><span class="icon-icon_angel"></span> ' . htmlspecialchars($user_source['Nick']) . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue