diff --git a/app/Models/Client.php b/app/Models/Client.php index 6d6dd0b4bc34..feef11877984 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -328,7 +328,8 @@ class Client extends EntityModel } $contact = $this->contacts[0]; - return $contact->getDisplayName(); + + return $contact->getDisplayName() ?: trans('texts.unnamed_client'); } /** diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index c3d07a55e743..fe3028a226aa 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2098,7 +2098,7 @@ $LANG = array( 'facebook_and_twitter' => 'Facebook and Twitter', 'facebook_and_twitter_help' => 'Follow our feeds to help support our project', 'reseller_text' => 'Note: the white-label license is intended for personal use, please email us at :email if you\'d like to resell our app.', - + 'unnamed_client' => 'Unnamed Client', ); return $LANG;