summaryrefslogtreecommitdiff
path: root/includes/sys_menu.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r--includes/sys_menu.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php
index ca2ab411..dfc5c424 100644
--- a/includes/sys_menu.php
+++ b/includes/sys_menu.php
@@ -20,11 +20,11 @@ function page_link_to($page = '', $parameters = [])
*/
function header_render_hints()
{
- global $user;
+ $user = Auth()->user();
$hints_renderer = new UserHintsRenderer();
- if (isset($user)) {
+ if ($user) {
$hints_renderer->addHint(admin_new_questions());
$hints_renderer->addHint(user_angeltypes_unconfirmed_hint());
$hints_renderer->addHint(render_user_departure_date_hint());