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