Pārlūkot izejas kodu

Merge branch 'develop'

master
Guillaume Bourgeois pirms 4 mēnešiem
vecāks
revīzija
d43cd4916e
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      domain/User/User/NewsletterManager.php

+ 5
- 1
domain/User/User/NewsletterManager.php Parādīt failu

@@ -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);
}

Notiek ielāde…
Atcelt
Saglabāt