book are not objects anymore

This commit is contained in:
Gilles Crettenand
2015-05-21 14:25:43 +02:00
parent db1a9e911e
commit c26e624480

View File

@@ -210,7 +210,7 @@ class User extends DbMapping
public function hasWish($noticeId) public function hasWish($noticeId)
{ {
foreach ($this->getWishes() as $book) { foreach ($this->getWishes() as $book) {
if ($book->id == $noticeId) { if ($book['id'] == $noticeId) {
return true; return true;
} }
} }