diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index c049f70e..9adeeeb7 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -13,18 +13,18 @@ function meetings_title() { function user_meetings() { global $DISPLAY_NEWS, $privileges, $user; - + $html = '
' . _("Freeloaded") . ': ' . $shift['freeload_comment'] . '
'; else $myshift['comment'] .= '' . _("Freeloaded") . '
'; } - + $myshift['actions'] = array(); if ($its_me || in_array('user_shifts_admin', $privileges)) $myshift['actions'][] = button(page_link_to('user_myshifts') . '&edit=' . $shift['id'] . '&id=' . $user_source['UID'], glyph('edit') . _('edit'), 'btn-xs'); if (($shift['start'] > time() + $LETZTES_AUSTRAGEN * 3600) || in_array('user_shifts_admin', $privileges)) $myshift['actions'][] = button(page_link_to('user_myshifts') . ((! $its_me) ? '&id=' . $user_source['UID'] : '') . '&cancel=' . $shift['id'], glyph('trash') . _('sign off'), 'btn-xs'); $myshift['actions'] = table_buttons($myshift['actions']); - + if ($shift['freeloaded']) $timesum += - 2 * ($shift['end'] - $shift['start']); else @@ -151,9 +151,9 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel 'room' => "", 'shift_info' => "", 'comment' => "", - 'actions' => "" + 'actions' => "" ); - + return page_with_title(' ' . htmlspecialchars($user_source['Nick']) . ' ' . $user_name . '', array( msg(), div('row', array( @@ -161,7 +161,7 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel '