mirror of
https://github.com/friendica/friendica
synced 2024-11-14 11:42:55 +00:00
Merge pull request #10033 from friendica/bug/10032-event-query
Update value interpolation syntax in Model\Event::getListById
This commit is contained in:
commit
7b874ed215
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ class Event
|
||||||
// Query for the event by event id
|
// Query for the event by event id
|
||||||
$events = DBA::toArray(DBA::p("SELECT `event`.*, `post-user-view`.`id` AS `itemid` FROM `event`
|
$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`
|
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));
|
$owner_uid, $event_id));
|
||||||
|
|
||||||
if (DBA::isResult($events)) {
|
if (DBA::isResult($events)) {
|
||||||
|
|
Loading…
Reference in a new issue