]> git.mxchange.org Git - friendica.git/commitdiff
Fix some errors
authorMichael <heluecht@pirati.ca>
Fri, 20 Dec 2019 21:27:49 +0000 (21:27 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 20 Dec 2019 21:27:49 +0000 (21:27 +0000)
src/Worker/DiscoverContacts.php
src/Worker/UpdateServerDirectory.php
src/Worker/UpdateServers.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()",
index df87b20dcb64d2768ed336fc2abd3d156fb058a5..e2621073a5e81cc1336c36ec675d06132172c6c5 100644 (file)
@@ -7,12 +7,12 @@ namespace Friendica\Worker;
 use Friendica\Core\Logger;
 use Friendica\Protocol\PortableContact;
 
-class UpdateServerDirectory.php
+class UpdateServerDirectory
 {
        // Discover the given server id for their contacts
        public static function execute($gserverid)
        {
-               PortableContact::discoverSingleServer(gserverid);
+               PortableContact::discoverSingleServer($gserverid);
                return;
        }
 }
index a8248db458315c6f859519eba9ccce96ce5f67f7..4d288f8fe2dee21ee3c1dcb26ed32f928b356ef6 100644 (file)
@@ -17,7 +17,7 @@ class UpdateServers
         */
        public static function execute()
        {
-               $gservers = DBA::select("SELECT `url`, `created`, `last_failure`, `last_contact` FROM `gserver` ORDER BY rand()");
+               $gservers = DBA::p("SELECT `url`, `created`, `last_failure`, `last_contact` FROM `gserver` ORDER BY rand()");
                if (!DBA::isResult($gservers)) {
                        return;
                }