Fix notification preferences not being enabled by default

This commit is contained in:
Toby Zerner 2015-05-19 10:12:15 +09:30
parent 8095809c3f
commit 48a8beea52

View File

@ -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));
}
}
}