]> git.mxchange.org Git - friendica.git/commitdiff
Fix batch action query + Fix Namespace import
authorJonny Tischbein <jonny_tischbein@systemli.org>
Sun, 14 Oct 2018 19:14:32 +0000 (21:14 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Sun, 14 Oct 2018 19:14:32 +0000 (21:14 +0200)
mod/crepair.php
mod/dirfind.php
src/Module/Contact.php

index c9050b3cce08945a065ad7602633d0b88fb81438..af9575ed6d99c6f26d135ff8582ecab4ee356279 100644 (file)
@@ -28,7 +28,7 @@ function crepair_init(App $a)
 
        if (DBA::isResult($contact)) {
                $a->data['contact'] = $contact;
-               Profile::load($a, "", 0, Module\Contact::getDetailsByURL($contact["url"]));
+               Model\Profile::load($a, "", 0, Model\Contact::getDetailsByURL($contact["url"]));
        }
 }
 
index ea5aae669ac233c74968fbb0413440f4546e8134..3e5aa83a7208df0f14c3cddc6b523b4bcc927afc 100644 (file)
@@ -226,7 +226,7 @@ function dirfind_content(App $a, $prefix = "") {
                                                $photo_menu = [];
                                        }
 
-                                       $photo_menu['profile'] = [L10n::t("View Profile"), Module\Contact::magicLink($jj->url)];
+                                       $photo_menu['profile'] = [L10n::t("View Profile"), Model\Contact::magicLink($jj->url)];
                                        $photo_menu['follow'] = [L10n::t("Connect/Follow"), $connlnk];
                                }
 
index ba06b7e0b32bc666eee1dd2cc0178530a9d5aa90..30ad60d4b7537ca06bc5b612873a95bcad76bb93 100644 (file)
@@ -134,7 +134,7 @@ class Contact extends BaseModule
 
                $contacts_id = $_POST['contact_batch'];
 
-               $stmt = DBA::select('contact', ['id'], ['id' => $contacts_id, 'id' => local_user(), 'self' => false]);
+               $stmt = DBA::select('contact', ['id'], ['id' => $contacts_id, 'uid' => local_user(), 'self' => false]);
                $orig_records = DBA::toArray($stmt);
                
                $count_actions = 0;