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

Commit

Permalink
Merge branch 'master' of git://github.com/Opifer/Cms
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick van Laarhoven committed Jan 29, 2016
2 parents 21970f3 + bcdf24f commit d2f9f16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ public function getValueSet()
public function getAttributes()
{
$array = [];

if ($this->getValueSet() === null) {
return $array;
}

foreach ($this->getValueSet()->getValues() as $value) {
$array[$value->getAttribute()->getName()] = $value;
}
Expand Down

0 comments on commit d2f9f16

Please sign in to comment.