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

+ +