diff options
author | msquare <msquare@notrademark.de> | 2017-11-30 21:32:04 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-11-30 21:32:04 +0100 |
commit | 962e7d5726e9720ba66fd268548b85238e098019 (patch) | |
tree | d17aed175fa52724609e208f42f80d8dec53e272 /includes/view/User_view.php | |
parent | d24701bde5500e309f5e893e2662ad21c81dacba (diff) |
Hide 'You are not marked as arrived' notification in header until congress starts, fixes #368
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r-- | includes/view/User_view.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php index cb2af7c0..840cfb1c 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -690,7 +690,12 @@ function render_user_arrived_hint() global $user; if ($user['Gekommen'] == 0) { - return _('You are not marked as arrived. Please go to heaven\'s desk, get your angel badge and/or tell them that you arrived already.'); + $event_config = EventConfig(); + if(!is_null($event_config) + && !is_null($event_config['buildup_start_date']) + && time() > $event_config['buildup_start_date']) { + return _('You are not marked as arrived. Please go to heaven\'s desk, get your angel badge and/or tell them that you arrived already.'); + } } return null; |