summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-03 06:18:18 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-03 06:18:18 +0000
commit1c6384f8235642834422b0846cdda3b0a60a57cc (patch)
tree0165795bf4385bcb1fdfb3d0d66d732468a1ad5e /modules/notification/helpers/notification_event.php
parent7cadb4b21b90864b4151481da9aba244d7083788 (diff)
Removed the === false and === true checks
Diffstat (limited to 'modules/notification/helpers/notification_event.php')
-rw-r--r--modules/notification/helpers/notification_event.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index 3fccdfbe..1568b854 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -23,7 +23,11 @@ class notification_event_Core {
}
static function item_created($item) {
- notification::send_item_add($item);
+ $batch_id = Session::instance()->get("batch_id");
+ if (!batch::in_progress("add") {
+ notification::send_item_add($item);
+ } else {
+ }
}
static function item_before_delete($item) {