diff --git a/public/include/classes/notification.class.php b/public/include/classes/notification.class.php index ddf59e9c..b11f990c 100644 --- a/public/include/classes/notification.class.php +++ b/public/include/classes/notification.class.php @@ -155,7 +155,7 @@ class Notification extends Mail { if ($stmt->close() && $this->sendMail('notifications/' . $strType, $aMailData) && $this->addNotification($account_id, $strType, $aMailData)) { return true; } else { - $this->setErrorMessage('SendMail call failed: ' . $this->mail->getError()); + $this->setErrorMessage('SendMail call failed: ' . $this->getError()); return false; } } else {