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