From 9eab1bafaf86c9314588b0f28b05077cbd8e8df3 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 15 Feb 2022 12:29:40 +0100 Subject: [PATCH] Commit --- app/core/User.php | 2 ++ app/view/template/header.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/core/User.php b/app/core/User.php index cff686f..3b53aa2 100644 --- a/app/core/User.php +++ b/app/core/User.php @@ -36,6 +36,8 @@ class User $row = $sth->fetch(PDO::FETCH_ASSOC); $this->powerLevel = $row['NivÄ']; + } else { + $this->powerLevel = 0; } } diff --git a/app/view/template/header.php b/app/view/template/header.php index 3c92fd0..f2fa1fb 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -38,13 +38,17 @@ + + user->powerLevel > 0): ?>

Tillatelser

+ +