aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-04-23 16:07:57 +0000
committerMario <mario@mariovavti.com>2023-04-23 16:07:57 +0000
commit3ad0179b629787cb8d7672e351a2abb9847850ad (patch)
treee9e089d94cede2f8a55cbe225b2f4e2957f285c5 /include/event.php
parent81f33da4991ed2abaa2422dac2bcc5fe5a2eea74 (diff)
downloadvolse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.tar.gz
volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.tar.bz2
volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.zip
fix regression when rendering event items
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];