]> git.mxchange.org Git - friendica.git/commitdiff
Update value interpolation syntax in Model\Event::getListById
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 11 Mar 2021 19:03:53 +0000 (14:03 -0500)
committerGitHub <noreply@github.com>
Thu, 11 Mar 2021 19:03:53 +0000 (14:03 -0500)
src/Model/Event.php

index ab567e03f38e62a04035a55eeb41b70b8589a6d9..f0346427a6dafd737ee41e13185bcb76058ebc96 100644 (file)
@@ -518,7 +518,7 @@ class Event
                // Query for the event by event id
                $events = DBA::toArray(DBA::p("SELECT `event`.*, `post-user-view`.`id` AS `itemid` FROM `event`
                        LEFT JOIN `post-user-view` ON `post-user-view`.`event-id` = `event`.`id` AND `post-user-view`.`uid` = `event`.`uid`
-                       WHERE `event`.`uid` = %d AND `event`.`id` = %d $sql_extra",
+                       WHERE `event`.`uid` = ? AND `event`.`id` = ? $sql_extra",
                        $owner_uid, $event_id));
 
                if (DBA::isResult($events)) {