From c26e624480b96e5c3d73ef96d2f1c3aa3f257093 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Thu, 21 May 2015 14:25:43 +0200 Subject: [PATCH] book are not objects anymore --- lib/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/User.php b/lib/User.php index 6b1c050..55e4475 100644 --- a/lib/User.php +++ b/lib/User.php @@ -210,7 +210,7 @@ class User extends DbMapping public function hasWish($noticeId) { foreach ($this->getWishes() as $book) { - if ($book->id == $noticeId) { + if ($book['id'] == $noticeId) { return true; } }