summaryrefslogtreecommitdiff
path: root/app/Subscriber/NotificationSubscriber.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-16 21:35:25 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-16 21:35:25 -0500
commitee19c626485037adb57ae85b0cba598d37bd0010 (patch)
tree7ffdf6710c48490c0051f1564b45fdfc7bbe5b5f /app/Subscriber/NotificationSubscriber.php
parent6a7b8ec60f265413ca88878dba6180456257d370 (diff)
Allow one call by event
Diffstat (limited to 'app/Subscriber/NotificationSubscriber.php')
-rw-r--r--app/Subscriber/NotificationSubscriber.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Subscriber/NotificationSubscriber.php b/app/Subscriber/NotificationSubscriber.php
index 6c24b08c..d3afc13a 100644
--- a/app/Subscriber/NotificationSubscriber.php
+++ b/app/Subscriber/NotificationSubscriber.php
@@ -34,7 +34,7 @@ class NotificationSubscriber extends BaseSubscriber implements EventSubscriberIn
public function handleEvent(GenericEvent $event, $event_name)
{
- if (! $this->isExecuted()) {
+ if (! $this->isExecuted($event_name)) {
$this->logger->debug('Subscriber executed: '.__CLASS__.'::'.__METHOD__);
$event_data = $this->getEventData($event);