Fix machine opens counter
[MAILPOET-3797]
This commit is contained in:
@@ -89,7 +89,7 @@ class NewsletterStatisticsRepository extends Repository {
|
||||
$result = $qb->andWhere('(stats.userAgentType = :userAgentType)')
|
||||
->setParameter('userAgentType', UserAgentEntity::USER_AGENT_TYPE_MACHINE)
|
||||
->getQuery()
|
||||
->getResult();
|
||||
->getOneOrNullResult();
|
||||
|
||||
if (empty($result)) return 0;
|
||||
return $result['cnt'] ?? 0;
|
||||
|
Reference in New Issue
Block a user