diff options
| author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 22:19:49 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 22:19:49 -0400 |
| commit | 09da289c2fb18475f372bee24e885617da484e0b (patch) | |
| tree | 95d1869ba3236ccdd9234d7909fc16c495c84d44 /app/Model/UserNotificationType.php | |
| parent | 9283fb88d80cb355ff98364a9a57b657fc511d98 (diff) | |
Move slack, hipchat and jabber integrations to plugins
Diffstat (limited to 'app/Model/UserNotificationType.php')
| -rw-r--r-- | app/Model/UserNotificationType.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Model/UserNotificationType.php b/app/Model/UserNotificationType.php index d2613440..89beb480 100644 --- a/app/Model/UserNotificationType.php +++ b/app/Model/UserNotificationType.php @@ -26,7 +26,8 @@ class UserNotificationType extends NotificationType */ public function getSelectedTypes($user_id) { - return $this->db->table(self::TABLE)->eq('user_id', $user_id)->asc('notification_type')->findAllByColumn('notification_type'); + $types = $this->db->table(self::TABLE)->eq('user_id', $user_id)->asc('notification_type')->findAllByColumn('notification_type'); + return $this->filterTypes($types); } /** @@ -46,6 +47,6 @@ class UserNotificationType extends NotificationType $results[] = $this->db->table(self::TABLE)->insert(array('user_id' => $user_id, 'notification_type' => $type)); } - return ! in_array(false, $results); + return ! in_array(false, $results, true); } } |
