Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #50 from werwolflg/fix-braces
Browse files Browse the repository at this point in the history
Fix curly braces deprecated error in User model
  • Loading branch information
aprokopenko authored May 11, 2022
2 parents 39b7e17 + 403a7d2 commit 78be3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getFullName()
*/
public function getShortName()
{
return trim($this->first_name . ' ' . ($this->last_name ? $this->last_name{0} . '.' : ''));
return trim($this->first_name . ' ' . ($this->last_name ? $this->last_name[0] . '.' : ''));
}

/**
Expand Down

0 comments on commit 78be3c0

Please sign in to comment.