aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/event.php2
-rwxr-xr-xmod/events.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/include/event.php b/include/event.php
index 4762ccff7..0dde6b1a5 100644
--- a/include/event.php
+++ b/include/event.php
@@ -243,7 +243,7 @@ dbg(1);
-function event_store_item($arr) {
+function event_store_item($arr,$event) {
require_once('include/datetime.php');
require_once('include/items.php');
diff --git a/mod/events.php b/mod/events.php
index 8bf8c6ce1..126460e9a 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -125,9 +125,10 @@ function events_post(&$a) {
$datarray['created'] = $created;
$datarray['edited'] = $edited;
- $item_id = event_store($datarray);
+ $event = event_store_event($datarray);
+ $item_id = event_store_item($datarray,$event);
- if(! $cid)
+ if($share)
proc_run('php',"include/notifier.php","event","$item_id");
}