Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
[2.1.1] Fixed error related to incorrect unserliazation
Browse files Browse the repository at this point in the history
  • Loading branch information
Free Man committed Feb 13, 2018
1 parent 2fc28c1 commit 9f76e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Model/Entity/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(array $data)
{
$this->setName($data['name'] ?? '');
$this->setContentHash($data['content_hash'] ?? '');
$this->setDateAdded(!empty($data['date_added']) ? new \DateTime($data['date_added']) : new \DateTime());
$this->setDateAdded(!empty($data['date_added']['date']) ? new \DateTime($data['date_added']['date']) : new \DateTime());
$this->setMimeType($data['mime_type'] ?? '');
$this->setTags($data['tags'] ?? '');
$this->setUrl($data['url'] ?? '');
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f76e90

Please sign in to comment.