aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-12 11:50:02 +0200
committerThomas Lange <code@nerdmind.de>2017-04-12 11:50:02 +0200
commit7930ae84f8d3e6e8893ebdf1b0177203ee8c8b6d (patch)
treeadf5e6468e5559f3a8cf01ddf4136109c6851aa7
parent4ac3db5bbf609dfb53daed1615b00c36a6282e3e (diff)
downloadblog-7930ae84f8d3e6e8893ebdf1b0177203ee8c8b6d.tar.gz
blog-7930ae84f8d3e6e8893ebdf1b0177203ee8c8b6d.tar.xz
blog-7930ae84f8d3e6e8893ebdf1b0177203ee8c8b6d.zip
Inconsistency in the admin template parameters fixed (this does not affect any template parameters for the frontend templates).
-rw-r--r--admin/auth.php4
-rw-r--r--template/admin/html/auth.php4
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; ?>