git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940f4aa
)
login/edit: silence alter error for custom input
v3.3
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 7 Jul 2018 13:04:14 +0000
(15:04 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 7 Jul 2018 16:50:48 +0000
(18:50 +0200)
Assume untargeted columns are handled later if input is set.
Fixes irrelevant password warning.
login/edit.php
patch
|
blob
|
history
diff --git
a/login/edit.php
b/login/edit.php
index e39af548a3692549213c7756215976222d35dcbf..31d4d20875de16661d71cd517701715a5a7baef2 100644
(file)
--- a/
login/edit.php
+++ b/
login/edit.php
@@
-138,7
+138,9
@@
if ($_POST) {
}
$cols[$col]['value'] = $val; # update form value
if (empty($cols[$col]['target'])) {
- $colwarn[$col] = "Kan niet worden aangepast.";
+ if (empty($cols[$col]['input'])) {
+ $colwarn[$col] = "Kan niet worden aangepast.";
+ }
continue;
}
if (file_put_contents($cols[$col]['target'], $val) === FALSE) {