]> git.mxchange.org Git - friendica.git/commitdiff
Fix event id typo in Model\Event
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 7 Apr 2018 00:58:09 +0000 (20:58 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 7 Apr 2018 00:58:09 +0000 (20:58 -0400)
src/Model/Event.php

index 9fa55521bea86058271c08c8d51fe8f35c205658..e65e61ee58367a4e3e6005217a36a5a29af1b860 100644 (file)
@@ -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)) {