]> git.mxchange.org Git - friendica-addons.git/blobdiff - jappixmini/jappixmini.php
RU translation of cal addon THX pztrn
[friendica-addons.git] / jappixmini / jappixmini.php
index 08d821128db7c34d3ce0507d2db4c40566ebf593..44b69a4e5843bcd43a2b26ef17a8dd2822474159 100644 (file)
@@ -550,7 +550,8 @@ function jappixmini_cron(&$a, $d) {
                $uid = $row["uid"];
 
                // for each user, go through list of contacts
-               $contacts = q("SELECT * FROM `contact` WHERE `uid`=%d AND ((LENGTH(`dfrn-id`) AND LENGTH(`pubkey`)) OR (LENGTH(`issued-id`) AND LENGTH(`prvkey`)))", intval($uid));
+               $contacts = q("SELECT * FROM `contact` WHERE `uid`=%d AND ((LENGTH(`dfrn-id`) AND LENGTH(`pubkey`)) OR (LENGTH(`issued-id`) AND LENGTH(`prvkey`))) AND `network` = '%s'",
+                       intval($uid), dbesc(NETWORK_DFRN));
                foreach ($contacts as $contact_row) {
                        $request = $contact_row["request"];
                        if (!$request) continue;