Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-03-06 20:08:20 +0300
committerdartcafe <github@dartcafe.de>2021-03-06 20:08:20 +0300
commitb3c1284cb95642f0400811ecbc37cbd3b8dfab2e (patch)
tree56ab30d957c6117869cf3bda2e32e4ef67f7913c /lib
parentddebf8005475fc33a6fff43382a9d14bd1f7cd48 (diff)
fix comparism in mail controller
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/MailService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/MailService.php b/lib/Service/MailService.php
index 30a3ebec..7670d829 100644
--- a/lib/Service/MailService.php
+++ b/lib/Service/MailService.php
@@ -267,7 +267,7 @@ class MailService {
$this->trans->t('"{title}" had recent activity: ')
));
foreach ($log as $logItem) {
- if ($logItem->getPollId() === $poll->getId()) {
+ if (intval($logItem->getPollId()) === $poll->getId()) {
if ($poll->getAnonymous() || $poll->getShowResults() !== "always") {
$displayName = $this->trans->t('A user');
} elseif ($this->userManager->get($logItem->getUserId()) instanceof IUser) {