1
0
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:
Toby Zerner
2015-06-08 09:34:39 +09:30
parent a5ad1fded7
commit f928e746d9

View File

@@ -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();
}