Fix for "Undefined index: profile_url"

This commit is contained in:
Michael 2020-04-28 19:36:10 +00:00
parent a61f61a051
commit 6f3b46217e
2 changed files with 3 additions and 3 deletions

View 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(

View 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 />' : '');