diff options
Diffstat (limited to 'inc/Subscriptions/SubscriptionSender.php')
-rw-r--r-- | inc/Subscriptions/SubscriptionSender.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/Subscriptions/SubscriptionSender.php b/inc/Subscriptions/SubscriptionSender.php index afc05bfc0..4a4e31ea2 100644 --- a/inc/Subscriptions/SubscriptionSender.php +++ b/inc/Subscriptions/SubscriptionSender.php @@ -10,7 +10,7 @@ abstract class SubscriptionSender public function __construct(Mailer $mailer = null) { - if ($mailer === null) { + if (!$mailer instanceof \Mailer) { $mailer = new Mailer(); } $this->mailer = $mailer; @@ -29,7 +29,7 @@ abstract class SubscriptionSender static $listid = null; if (is_null($listid)) { $server = parse_url(DOKU_URL, PHP_URL_HOST); - $listid = join('.', array_reverse(explode('/', DOKU_BASE))) . $server; + $listid = implode('.', array_reverse(explode('/', DOKU_BASE))) . $server; $listid = urlencode($listid); $listid = strtolower(trim($listid, '.')); } |