From 2fc402f6733573627ad25394d109b9f848ef04f6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 14 Nov 2015 16:12:44 -0500 Subject: Fix PHP error when adding a new user with email notification enabled --- app/Notification/Mail.php | 7 +++++++ app/Notification/Web.php | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'app/Notification') diff --git a/app/Notification/Mail.php b/app/Notification/Mail.php index cd8af852..98bffef2 100644 --- a/app/Notification/Mail.php +++ b/app/Notification/Mail.php @@ -16,6 +16,13 @@ use Kanboard\Model\Subtask; */ class Mail extends Base implements NotificationInterface { + /** + * Notification type + * + * @var string + */ + const TYPE = 'email'; + /** * Send notification to a user * diff --git a/app/Notification/Web.php b/app/Notification/Web.php index 989ae06e..9271c193 100644 --- a/app/Notification/Web.php +++ b/app/Notification/Web.php @@ -12,6 +12,13 @@ use Kanboard\Core\Base; */ class Web extends Base implements NotificationInterface { + /** + * Notification type + * + * @var string + */ + const TYPE = 'web'; + /** * Send notification to a user * -- cgit v1.2.3