Skip to content

Commit

Permalink
Fix user profile without social accounts enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapiiik committed May 27, 2024
1 parent 86cfa7c commit ab5323e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/AppUsers/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<p><?= h($user->email) ?></p>
<h6 class="subheader"><?= __d('app_users', 'Role') ?></h6>
<p><?= h($user->getRoleName()) ?></p>
<?= $this->User->socialConnectLinkList($user->social_accounts) ?>
<?= $this->User->socialConnectLinkList($user->social_accounts ?? []) ?>
<?php
if (!empty($user->social_accounts)) :
?>
Expand Down

0 comments on commit ab5323e

Please sign in to comment.