]> git.mxchange.org Git - friendica.git/commitdiff
Fix for "Undefined index: profile_url"
authorMichael <heluecht@pirati.ca>
Tue, 28 Apr 2020 19:36:10 +0000 (19:36 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 28 Apr 2020 19:36:10 +0000 (19:36 +0000)
src/Core/Search.php
src/Module/Directory.php

index 841572374276c6697e579c62980c852f5deae342..4742ac599359f1b9a6297a84264574bc04e67a58 100644 (file)
@@ -142,7 +142,7 @@ class Search
                $profiles = $results['profiles'] ?? [];
 
                foreach ($profiles as $profile) {
-                       $profile_url = $profile['profile_url'] ?? '';
+                       $profile_url = $profile['url'] ?? '';
                        $contactDetails = Contact::getDetailsByURL($profile_url, local_user());
 
                        $result = new ContactResult(
index 0709aa39748f147b890a08711eaab2eec12f6e56..3d03f10711935e17e1c755fddd62e240df823b56 100644 (file)
@@ -120,9 +120,9 @@ class Directory extends BaseModule
         */
        public static function formatEntry(array $contact, $photo_size = 'photo')
        {
-               $itemurl = (($contact['addr'] != "") ? $contact['addr'] : $contact['profile_url']);
+               $itemurl = (($contact['addr'] != "") ? $contact['addr'] : $contact['url']);
 
-               $profile_link = $contact['profile_url'];
+               $profile_link = $contact['url'];
 
                $about = (($contact['about']) ? $contact['about'] . '<br />' : '');