mirror of
https://github.com/flarum/core.git
synced 2025-07-30 13:10:24 +02:00
Prevent formatter from being invoked if bio is empty
This commit is contained in:
@@ -200,7 +200,7 @@ class User extends Model
|
||||
*/
|
||||
public function getBioHtmlAttribute($value)
|
||||
{
|
||||
if (! $value) {
|
||||
if ($value === null) {
|
||||
$this->bio_html = $value = static::formatBio($this->bio);
|
||||
$this->save();
|
||||
}
|
||||
|
Reference in New Issue
Block a user