From 48a8beea52db524a69b9c21cb19ddc0ed064c38b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 19 May 2015 10:12:15 +0930 Subject: [PATCH] Fix notification preferences not being enabled by default --- framework/core/src/Extend/NotificationType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Extend/NotificationType.php b/framework/core/src/Extend/NotificationType.php index 89b91467d..ffbd71124 100644 --- a/framework/core/src/Extend/NotificationType.php +++ b/framework/core/src/Extend/NotificationType.php @@ -33,7 +33,7 @@ class NotificationType implements ExtenderInterface foreach ($notifier->getMethods() as $method => $sender) { if ($sender::compatibleWith($class)) { - User::registerPreference(User::notificationPreferenceKey($class::getType(), $method), 'boolval', isset($this->enabled[$method])); + User::registerPreference(User::notificationPreferenceKey($class::getType(), $method), 'boolval', in_array($method, $this->enabled)); } } }