Ver código fonte

Merge branch 'develop'

master
Guillaume Bourgeois 4 meses atrás
pai
commit
d43cd4916e
1 arquivos alterados com 5 adições e 1 exclusões
  1. +5
    -1
      domain/User/User/NewsletterManager.php

+ 5
- 1
domain/User/User/NewsletterManager.php Ver arquivo

@@ -32,8 +32,12 @@ class NewsletterManager extends AbstractService implements ManagerInterface
return false;
}

public function isUserSubscribedOneNewsletter(User $user): bool
public function isUserSubscribedOneNewsletter(User $user = null): bool
{
if(!$user) {
return false;
}

return $this->isUserSubscribedNewsletter($user, Email::TYPE_NEWSLETTER)
|| $this->isUserSubscribedNewsletter($user, Email::TYPE_ORDER_TAKING);
}

Carregando…
Cancelar
Salvar