diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 1d55d9f..3b128af 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -4709,7 +4709,7 @@ class EmployeeRestController extends AdminController $config = $this->reminderMailConfigModel->getByClientPolicyId((int) $clientPolicyId); if ($is_email_template) { - if (empty($config)) { + if (empty($config) || empty($config['email_subject'] ?? null) || empty($config['email_body'] ?? null)) { $notification = $this->notificationModel->where('client_id', $clientPolicy['client_id'])->where('template_name', 'member_reminder_mail')->first(); if (empty($notification)) {