From: Hypolite Petovan Date: Sat, 7 Apr 2018 00:58:09 +0000 (-0400) Subject: Fix event id typo in Model\Event X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b5341b84c540b969308ee9c7f40d5f7ea514457;p=friendica.git Fix event id typo in Model\Event --- diff --git a/src/Model/Event.php b/src/Model/Event.php index 9fa55521be..e65e61ee58 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -287,7 +287,7 @@ class Event extends BaseObject 'nofinish' => $event['nofinish'], ]; - dba::update('event', $updated_fields, ['id' => $event['cid'], 'uid' => $event['uid']]); + dba::update('event', $updated_fields, ['id' => $event['id'], 'uid' => $event['uid']]); $item = dba::selectFirst('item', ['id'], ['event-id' => $event['id'], 'uid' => $event['uid']]); if (DBM::is_result($item)) {