Decrease scope of query in Profile::getEventsReminderHTML
- Use specific SELECT fields - Use INNER JOIN
This commit is contained in:
parent
08afec3170
commit
e0b33b36a2
|
@ -646,9 +646,9 @@ class Profile
|
|||
$self = dba::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]);
|
||||
|
||||
$s = dba::p(
|
||||
"SELECT *
|
||||
"SELECT `event`.*
|
||||
FROM `event`
|
||||
JOIN `item`
|
||||
INNER JOIN `item`
|
||||
ON `item`.`uid` = `event`.`uid`
|
||||
AND `item`.`parent-uri` = `event`.`uri`
|
||||
WHERE `event`.`uid` = ?
|
||||
|
|
Loading…
Reference in a new issue