mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:00:20 +00:00
Add logging for unexpected Search::searchGlobalContact return in Module\Search\Acl
This commit is contained in:
parent
2af20ea17a
commit
e91daf8f46
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ class Acl extends BaseModule
|
|||
|
||||
$contacts = [];
|
||||
foreach ($r as $g) {
|
||||
if (empty($g['name'])) {
|
||||
DI::logger()->warning('Wrong result item from Search::searchGlobalContact', ['$g' => $g, '$search' => $search, '$mode' => $mode, '$page' => $page]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$contacts[] = [
|
||||
'photo' => ProxyUtils::proxifyUrl($g['photo'], false, ProxyUtils::SIZE_MICRO),
|
||||
'name' => htmlspecialchars($g['name']),
|
||||
|
|
Loading…
Reference in a new issue