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/Controller/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Controller') diff --git a/app/Controller/User.php b/app/Controller/User.php index b5f4edeb..8526fb57 100644 --- a/app/Controller/User.php +++ b/app/Controller/User.php @@ -3,6 +3,7 @@ namespace Kanboard\Controller; use Kanboard\Model\NotificationType; +use Kanboard\Notification\Mail as MailNotification; /** * User controller @@ -95,7 +96,7 @@ class User extends Base $this->projectPermission->addMember($project_id, $user_id); if (! empty($values['notifications_enabled'])) { - $this->userNotificationType->saveSelectedTypes($user_id, array(NotificationType::TYPE_EMAIL)); + $this->userNotificationType->saveSelectedTypes($user_id, array(MailNotification::TYPE)); } $this->session->flash(t('User created successfully.')); -- cgit v1.2.3