]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DiscoverContacts.php
Merge remote-tracking branch 'upstream/2019.12-rc' into poco-cleanup
[friendica.git] / src / Worker / DiscoverContacts.php
index 88023bccc20c1adeb77a517793efb80811cc629f..7af170b3b45207c83ecfc8648d208bda7a680e89 100644 (file)
@@ -27,7 +27,7 @@ class DiscoverContacts
 
                $starttime = time();
 
-               $contacts = DBA::select("SELECT `url`, `created`, `updated`, `last_failure`, `last_contact`, `server_url`, `network` FROM `gcontact`
+               $contacts = DBA::p("SELECT `url`, `created`, `updated`, `last_failure`, `last_contact`, `server_url`, `network` FROM `gcontact`
                                WHERE `last_contact` < UTC_TIMESTAMP - INTERVAL 1 MONTH AND
                                        `last_failure` < UTC_TIMESTAMP - INTERVAL 1 MONTH AND
                                        `network` IN (?, ?, ?, ?, '') ORDER BY rand()",