book are not objects anymore

master
Gilles Crettenand 11 years ago
parent db1a9e911e
commit c26e624480

@ -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;
} }
} }

Loading…
Cancel
Save