mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
In some cases $contact['CLOUD'] is not an array
This commit is contained in:
parent
ca25055cc8
commit
847b1e3af0
1 changed files with 5 additions and 1 deletions
|
|
@ -271,7 +271,11 @@ class Sharees {
|
|||
$foundRemoteById = false;
|
||||
foreach ($addressBookContacts as $contact) {
|
||||
if (isset($contact['CLOUD'])) {
|
||||
foreach ($contact['CLOUD'] as $cloudId) {
|
||||
$cloudIds = $contact['CLOUD'];
|
||||
if (!is_array($cloudIds)) {
|
||||
$cloudIds = [$cloudIds];
|
||||
}
|
||||
foreach ($cloudIds as $cloudId) {
|
||||
if (strtolower($contact['FN']) === $search || strtolower($cloudId) === $search) {
|
||||
if (strtolower($cloudId) === $search) {
|
||||
$foundRemoteById = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue