Avoid notices because of empty fields
This commit is contained in:
parent
4d4544ada3
commit
09f29cd577
|
@ -361,7 +361,7 @@ class APContact
|
|||
|
||||
Logger::info('Updated profile', ['url' => $url]);
|
||||
|
||||
return $apcontact;
|
||||
return DBA::selectFirst('apcontact', [], ['url' => $apcontact['url']]) ?: [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue