diff options
-rw-r--r-- | admin/auth.php | 4 | ||||
-rw-r--r-- | template/admin/html/auth.php | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/admin/auth.php b/admin/auth.php index b90db92..160516b 100644 --- a/admin/auth.php +++ b/admin/auth.php @@ -60,9 +60,7 @@ else { try { $AuthTemplate = Template\Factory::build('auth'); $AuthTemplate->set('FORM', [ - 'INFO' => [ - 'LIST' => $messages ?? [], - ], + 'INFO' => $messages ?? [], 'DATA' => [ 'USERNAME' => HTTP::POST('username'), 'PASSWORD' => HTTP::POST('password'), diff --git a/template/admin/html/auth.php b/template/admin/html/auth.php index a33be5d..bb12053 100644 --- a/template/admin/html/auth.php +++ b/template/admin/html/auth.php @@ -1,8 +1,8 @@ <h1><?=$Language->template('authentication_text')?></h1> <p><?=$Language->template('authentication_desc')?></p> -<?php if(isset($FORM['INFO']['LIST'])): ?> - <?php foreach($FORM['INFO']['LIST'] as $message): ?> +<?php if(isset($FORM['INFO'])): ?> + <?php foreach($FORM['INFO'] as $message): ?> <div class="red"><?=$message?></div> <?php endforeach; ?> <?php endif; ?> |