From f171cbced23161f00281bc8d3aaf4c741c1b230e Mon Sep 17 00:00:00 2001 From: bobray Date: Mon, 11 Mar 2019 16:38:44 -0400 Subject: [PATCH] Fix username fallback for empty fullname --- .../personalize/elements/snippets/snippet.personalize.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/components/personalize/elements/snippets/snippet.personalize.php b/core/components/personalize/elements/snippets/snippet.personalize.php index 8016b1f..f900a83 100644 --- a/core/components/personalize/elements/snippets/snippet.personalize.php +++ b/core/components/personalize/elements/snippets/snippet.personalize.php @@ -150,6 +150,10 @@ } else { $name = $modx->user->get('username'); } + + if (empty($name)) { + $name = $modx->user->get('username'); + } $modx->setPlaceholder($ph, $name); } } elseif( !empty ($noChunk) ) {