aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php
index 6273279c2..894a1e4f7 100644
--- a/include/event.php
+++ b/include/event.php
@@ -713,7 +713,7 @@ function event_addtocal($item_id, $uid) {
intval($channel['channel_id'])
);
- if((! $r) || ($r[0]['obj_type'] !== ACTIVITY_OBJ_EVENT))
+ if(!$r || !in_array($r[0]['obj_type'], ['Event', ACTIVITY_OBJ_EVENT]))
return false;
$item = $r[0];