diff --git a/src/Adamgoose/PrismicIo/Prismic.php b/src/Adamgoose/PrismicIo/Prismic.php index e3ae154..168ae8d 100644 --- a/src/Adamgoose/PrismicIo/Prismic.php +++ b/src/Adamgoose/PrismicIo/Prismic.php @@ -146,7 +146,10 @@ public function get() $return = $ctx->submit(); if($this->offset != 0 || isset($this->limit)) - return array_slice($return, $this->offset, $this->limit); + $return = array_slice($return, $this->offset, $this->limit); + + if(count($return) == 1) + return $return[0]; else return $return; }