1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Merge branch 'Bajszi97/development' into development

This commit is contained in:
Dan Brown
2023-09-13 10:12:49 +01:00
2 changed files with 13 additions and 1 deletions

View File

@@ -345,7 +345,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
return $splitName[0];
}
return '';
return mb_substr($this->name, 0, max($chars - 2, 0)) . '';
}
/**