Skip to content

Commit

Permalink
Fix username fallback for empty fullname
Browse files Browse the repository at this point in the history
  • Loading branch information
BobRay committed Mar 11, 2019
1 parent 0a0de04 commit f171cbc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) {
Expand Down

0 comments on commit f171cbc

Please sign in to comment.