mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +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 = [];
|
$contacts = [];
|
||||||
foreach ($r as $g) {
|
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[] = [
|
$contacts[] = [
|
||||||
'photo' => ProxyUtils::proxifyUrl($g['photo'], false, ProxyUtils::SIZE_MICRO),
|
'photo' => ProxyUtils::proxifyUrl($g['photo'], false, ProxyUtils::SIZE_MICRO),
|
||||||
'name' => htmlspecialchars($g['name']),
|
'name' => htmlspecialchars($g['name']),
|
||||||
|
|
Loading…
Reference in a new issue