diff --git a/src/Controller/MapAdminController.php b/src/Controller/MapAdminController.php index 2a10ce9..aff6a7e 100644 --- a/src/Controller/MapAdminController.php +++ b/src/Controller/MapAdminController.php @@ -8,6 +8,7 @@ use MapGuesser\Interfaces\Response\IContent; use MapGuesser\PersistentData\Model\Challenge; use MapGuesser\PersistentData\Model\Map; use MapGuesser\PersistentData\Model\Place; +use MapGuesser\PersistentData\Model\PlaceInChallenge; use MapGuesser\PersistentData\PersistentDataManager; use MapGuesser\Repository\ChallengeRepository; use MapGuesser\Repository\GuessRepository; diff --git a/src/Repository/UserInChallengeRepository.php b/src/Repository/UserInChallengeRepository.php index f50c7f8..6e87ce9 100644 --- a/src/Repository/UserInChallengeRepository.php +++ b/src/Repository/UserInChallengeRepository.php @@ -76,6 +76,6 @@ class UserInChallengeRepository $select->where('user_id', '=', $userId); $select->where('challenge_id', '=', $challenge->getId()); - return $select->count(); + return $select->count() != 0; } }