]> git.mxchange.org Git - friendica.git/commitdiff
Decrease scope of query in Profile::getEventsReminderHTML
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Apr 2018 08:41:53 +0000 (04:41 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Apr 2018 08:41:53 +0000 (04:41 -0400)
- Use specific SELECT fields
- Use INNER JOIN

src/Model/Profile.php

index 2238b3aac5dad148b27e50325dad44219d070b5d..1088ea600ed0042ee59c375e8904e5e43c64ce6f 100644 (file)
@@ -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` = ?