瀏覽代碼

Merge branch 'develop'

master
Guillaume Bourgeois 4 月之前
父節點
當前提交
d43cd4916e
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      domain/User/User/NewsletterManager.php

+ 5
- 1
domain/User/User/NewsletterManager.php 查看文件

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

Loading…
取消
儲存