aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-31 01:10:29 +0200
committerThomas Lange <code@nerdmind.de>2017-05-31 01:36:39 +0200
commitee982c2ee760d6aeafedcb4343d1bf259ca1fe87 (patch)
tree6511efda016c60961ff1b88d4387debfd79352c0
parentfd6af01e313f441189c4cd69668766d2ded7ced3 (diff)
downloadblog-ee982c2ee760d6aeafedcb4343d1bf259ca1fe87.tar.gz
blog-ee982c2ee760d6aeafedcb4343d1bf259ca1fe87.tar.xz
blog-ee982c2ee760d6aeafedcb4343d1bf259ca1fe87.zip
Bugfix: There was a problem with the formular for editing users which have been fixed in version 2.2.1v2.2.1
In all versions before 2.2 the template parameter $FORM['DATA']['PASSWORD'] was explicitly given, but always set to the value "NULL". Due to the changes in version 2.2, the parameter is no longer passed at all, which caused PHP to issue an notice via an undefined array index. The problem has now been solved by removing the "value" attribute for the password field from the form.
-rw-r--r--template/admin/html/user/form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/admin/html/user/form.php b/template/admin/html/user/form.php
index a260ee0..3da96d2 100644
--- a/template/admin/html/user/form.php
+++ b/template/admin/html/user/form.php
@@ -17,7 +17,7 @@
<div class="flex-item">
<div class="form-icon-flex"><i class="fa fa-key"></i></div>
<div class="form-label-flex"><label for="form_password"><?=$Language->template('label_password')?></label></div>
- <div class="form-field-flex"><input id="form_password" name="password" placeholder="[NO CHANGE]" value="<?=escapeHTML($FORM['DATA']['PASSWORD'])?>" type="password" /></div>
+ <div class="form-field-flex"><input id="form_password" name="password" placeholder="[NO CHANGE]" type="password" /></div>
</div>
</div>
<div class="flex flex-responsive">