From 9e6c24b1c2dcdd5192a74600fb0a4895f0e6d838 Mon Sep 17 00:00:00 2001 From: Adam Engebretson Date: Fri, 15 Nov 2013 10:27:40 -0600 Subject: [PATCH] Bugfix --- src/Adamgoose/PrismicIo/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adamgoose/PrismicIo/Model.php b/src/Adamgoose/PrismicIo/Model.php index bc9cf75..fba3295 100644 --- a/src/Adamgoose/PrismicIo/Model.php +++ b/src/Adamgoose/PrismicIo/Model.php @@ -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 '';