| @@ 367-379 (lines=13) @@ | ||
| 364 | foreach ($cloudIds as $cloudId) { |
|
| 365 | list(, $serverUrl) = $this->splitUserRemote($cloudId); |
|
| 366 | ||
| 367 | if (\strtolower($cloudId) === $lowerSearch) { |
|
| 368 | $foundRemoteById = true; |
|
| 369 | // Save this as an exact match and continue with next CLOUD |
|
| 370 | $this->result['exact']['remotes'][] = [ |
|
| 371 | 'label' => $contact['FN'], |
|
| 372 | 'value' => [ |
|
| 373 | 'shareType' => Share::SHARE_TYPE_REMOTE, |
|
| 374 | 'shareWith' => $cloudId, |
|
| 375 | 'server' => $serverUrl, |
|
| 376 | ], |
|
| 377 | ]; |
|
| 378 | continue; |
|
| 379 | } |
|
| 380 | ||
| 381 | // CLOUD matching is done above |
|
| 382 | unset($searchProperties['CLOUD']); |
|
| @@ 396-408 (lines=13) @@ | ||
| 393 | } |
|
| 394 | foreach ($values as $value) { |
|
| 395 | // check if we have an exact match |
|
| 396 | if (\strtolower($value) === $lowerSearch) { |
|
| 397 | $this->result['exact']['remotes'][] = [ |
|
| 398 | 'label' => $contact['FN'], |
|
| 399 | 'value' => [ |
|
| 400 | 'shareType' => Share::SHARE_TYPE_REMOTE, |
|
| 401 | 'shareWith' => $cloudId, |
|
| 402 | 'server' => $serverUrl, |
|
| 403 | ], |
|
| 404 | ]; |
|
| 405 | ||
| 406 | // Now skip to next CLOUD |
|
| 407 | continue 3; |
|
| 408 | } |
|
| 409 | } |
|
| 410 | } |
|
| 411 | ||