login/edit: silence code warning on missing values
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 11 Aug 2018 07:43:10 +0000 (09:43 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 11 Aug 2018 07:43:10 +0000 (09:43 +0200)
Ignore empty email/name.

login/edit.php

index 8f39f09df5ee36f9d05c5ef2ce297f4d692b4450..9b339a22dedf1cd8121bbda10777931190137194 100644 (file)
@@ -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 = [