Skip to content

Commit d275702

Browse files
committed
Bug with notifications queue: queue_emails setting was not correctly checked
1 parent 5294508 commit d275702

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Controllers/NotificationsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public function sendNotification($a_to, $data)
321321
$m->subject($to['subject']);
322322
};
323323

324-
if (Setting::grab('queue_emails') == 'yes') {
324+
if (Setting::grab('queue_emails')) {
325325
Mail::queue($to['template'], $data, $mail_callback);
326326
} else {
327327
Mail::send($to['template'], $data, $mail_callback);
@@ -337,7 +337,7 @@ public function sendNotification($a_to, $data)
337337

338338
$mail = new \PanicHD\PanicHD\Mail\PanicHDNotification($to['template'], $data, $email_from, $email_replyto, $to['subject']);
339339

340-
if (Setting::grab('queue_emails') == 'yes') {
340+
if (Setting::grab('queue_emails')) {
341341
Mail::to($to['recipient'])->queue($mail);
342342
} else {
343343
Mail::to($to['recipient'])->send($mail);

0 commit comments

Comments
 (0)