Skip to content

Commit

Permalink
Fix for PHP5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed Dec 1, 2014
1 parent 2b25aaf commit 73f2dc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Prismic/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73f2dc9

Please sign in to comment.