X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=1feab61d5baeb2c32a1515ac8587e4f53d2ce4ef;hb=f3ffe033c557ab3d2e3874bfab4f069eca9d3c9d;hp=4fd6706bd08d83288a4966715c48050bd3719c19;hpb=f0267fc441c0e8f1a4e9ea9bffa4e2d4b8f8490b;p=friendica.git diff --git a/mod/events.php b/mod/events.php index 4fd6706bd0..1feab61d5b 100644 --- a/mod/events.php +++ b/mod/events.php @@ -1,6 +1,6 @@ redirect('events'); @@ -585,7 +590,7 @@ function events_content(App $a) Item::deleteForUser(['id' => $ev[0]['itemid']], local_user()); } - if (Item::exists(['id' => $ev[0]['itemid']])) { + if (Post::exists(['id' => $ev[0]['itemid']])) { notice(DI::l10n()->t('Failed to remove event')); }