diff --git a/app/Models/Abstracted/Catalog.php b/app/Models/Abstracted/Catalog.php index c28b7dc..cd9151c 100644 --- a/app/Models/Abstracted/Catalog.php +++ b/app/Models/Abstracted/Catalog.php @@ -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); } /**