diff --git a/src/Views/E404View.php b/src/Views/E404View.php index 3243bcd..7999b71 100644 --- a/src/Views/E404View.php +++ b/src/Views/E404View.php @@ -33,7 +33,7 @@ public function __construct(NullModel $model, Authenticate $login, HtmlTemplate parent::__construct($model); //merge data passed from model with login information - $this->data = array_merge($this->data, ['login' => $login->logged, 'userName' => $login->getLoginData()['user_name']]); + $this->data = array_merge($this->data, ['login' => $login->islogged(), 'userName' => $login->getLoginData()['user_name']]); //store html template $this->template = $htmlTemplate;