1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 01:31:40 +02:00

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) { foreach ($notifier->getMethods() as $method => $sender) {
if ($sender::compatibleWith($class)) { 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));
} }
} }
} }