]> git.agnieray.net Git - galette.git/commitdiff
Handle empty nick, refs #1383
authorJohan Cwiklinski <jcwiklinski@teclib.com>
Sat, 25 Jan 2020 11:33:08 +0000 (12:33 +0100)
committerJohan Cwiklinski <jcwiklinski@teclib.com>
Sat, 25 Jan 2020 11:33:08 +0000 (12:33 +0100)
galette/lib/Galette/Entity/Adherent.php

index f14d632e46c2240748aaac553ff48ed37beb458f..b73a55997a38bade1db78430658c9a8b9207400c 100644 (file)
@@ -816,7 +816,7 @@ class Adherent
             $str .= $nick;
         }
         if ($id !== false) {
-            if ($nick !== false) {
+            if ($nick !== false && !empty($nick)) {
                 $str .= ', ';
             }
             $str .= $id;