From 54c2eaff8e42c96e87e2fac4905517420e8da0fd 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 --- src/Extend/NotificationType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extend/NotificationType.php b/src/Extend/NotificationType.php index 89b91467d..ffbd71124 100644 --- a/src/Extend/NotificationType.php +++ b/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)); } } }