Merge pull request #8559 from annando/notices
Fix for "Undefined index: profile_url"
This commit is contained in:
commit
65fc64e931
|
@ -142,7 +142,7 @@ class Search
|
||||||
$profiles = $results['profiles'] ?? [];
|
$profiles = $results['profiles'] ?? [];
|
||||||
|
|
||||||
foreach ($profiles as $profile) {
|
foreach ($profiles as $profile) {
|
||||||
$profile_url = $profile['profile_url'] ?? '';
|
$profile_url = $profile['url'] ?? '';
|
||||||
$contactDetails = Contact::getDetailsByURL($profile_url, local_user());
|
$contactDetails = Contact::getDetailsByURL($profile_url, local_user());
|
||||||
|
|
||||||
$result = new ContactResult(
|
$result = new ContactResult(
|
||||||
|
|
|
@ -120,9 +120,9 @@ class Directory extends BaseModule
|
||||||
*/
|
*/
|
||||||
public static function formatEntry(array $contact, $photo_size = 'photo')
|
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 />' : '');
|
$about = (($contact['about']) ? $contact['about'] . '<br />' : '');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user