Fix for when created and created_manual is null
This commit is contained in:
parent
270f63144b
commit
2e222b814b
@ -286,9 +286,9 @@ abstract class Catalog extends Model
|
||||
return (! is_readable($this->file_path())) ? NULL : filesize($this->file_path());
|
||||
}
|
||||
|
||||
public function getCreatedAttribute(): Carbon
|
||||
public function getCreatedAttribute()
|
||||
{
|
||||
return $this->created_manual ?: $this->asDateTime($this->attributes['created']);
|
||||
return $this->created_manual ?: ($this->attributes['created'] ? $this->asDateTime($this->attributes['created']) : NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user