From: Mischa POSLAWSKY Date: Sat, 11 Aug 2018 07:43:10 +0000 (+0200) Subject: login/edit: silence code warning on missing values X-Git-Tag: v3.6~2 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/0c55414fd58400c3923b1b16d5b194a9916637fb login/edit: silence code warning on missing values Ignore empty email/name. --- diff --git a/login/edit.php b/login/edit.php index 8f39f09..9b339a2 100644 --- a/login/edit.php +++ b/login/edit.php @@ -205,7 +205,7 @@ foreach ($cols as $col => &$colconf) { else { if (isset($cols[$col]['filter'])) { list ($targetstr, $inputstr) = $cols[$col]['filter']; - $colconf['value'] = str_replace($targetstr, $inputstr, $colconf['value']); + $colconf['value'] = str_replace($targetstr, $inputstr, @$colconf['value']); } $attrs = [