book are not objects anymore
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user