From 73f2dc9c2ccc2e2d5053f8b6524a27a3af62aa97 Mon Sep 17 00:00:00 2001 From: Erwan Loisant Date: Mon, 1 Dec 2014 15:11:10 +0100 Subject: [PATCH] Fix for PHP5.3 --- src/Prismic/Api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Prismic/Api.php b/src/Prismic/Api.php index ae7220a0..f094f3ce 100644 --- a/src/Prismic/Api.php +++ b/src/Prismic/Api.php @@ -130,8 +130,9 @@ public function bookmarks() */ public function bookmark($name) { - if (isset($this->bookmarks()[$name])) { - return $this->bookmarks()[$name]; + $bookmarks = $this->bookmarks(); + if (isset($bookmarks[$name])) { + return $bookmarks[$name]; } return null;