Skip to content

Commit

Permalink
Merge pull request #4 from adamgoose/develop
Browse files Browse the repository at this point in the history
Bugfix
  • Loading branch information
adamgoose committed Nov 15, 2013
2 parents 7718009 + 9e6c24b commit 9f911c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adamgoose/PrismicIo/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function __callStatic($method, $parameters)
public function __get($key)
{
if($this->document instanceof Document) {
if(array_key_exists($this->document->getType.".".$key, $this->document->getFragments()))
if(array_key_exists($this->document->getType().".".$key, $this->document->getFragments()))
return $this->document->get($this->document->getType().'.'.$key)->asText();
else
return '';
Expand Down

0 comments on commit 9f911c0

Please sign in to comment.