From f305c975132a14986338e51b0f515d2f214f3cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 29 May 2021 00:56:43 +0200 Subject: [PATCH] MAPG-240 UserInChallengeRepository::isUserParticipatingInChallenge should return bool --- src/Repository/UserInChallengeRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }