Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-12-22 01:25:34 +0300
committerdartcafe <github@dartcafe.de>2020-12-22 01:25:34 +0300
commit4526faac54d3918e6c2f905f5e1aa2e3afeba721 (patch)
tree438bc66c313803fb411ae105a364d0831a81d4e3 /lib/Model/Contact.php
parent1f6bad2e4004d01cbbc0dbd2e915258c31a6f30f (diff)
fix #881 - respect autocompletion restrictions from share settings
Diffstat (limited to 'lib/Model/Contact.php')
-rw-r--r--lib/Model/Contact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Model/Contact.php b/lib/Model/Contact.php
index c78e81c3..f121e00e 100644
--- a/lib/Model/Contact.php
+++ b/lib/Model/Contact.php
@@ -123,7 +123,7 @@ class Contact extends UserGroupClass {
*
* @param string[] $queryRange
*/
- public static function listRaw(string $query = '', array $queryRange = ['FN', 'EMAIL', 'ORG', 'CATEGORIES']) {
+ public static function listRaw(string $query = '', array $queryRange = ['FN', 'EMAIL', 'ORG', 'CATEGORIES']): array {
$contacts = [];
if (\OC::$server->getAppManager()->isEnabledForUser('contacts')) {
foreach (\OC::$server->getContactsManager()->search($query, $queryRange) as $contact) {
@@ -138,7 +138,7 @@ class Contact extends UserGroupClass {
/**
* @return Contact[]
*/
- public static function search(string $query = '', $queryRange = ['FN', 'EMAIL', 'ORG', 'CATEGORIES']) {
+ public static function search(string $query = '', $queryRange = ['FN', 'EMAIL', 'ORG', 'CATEGORIES']): array {
$contacts = [];
foreach (self::listRaw($query, $queryRange) as $contact) {
$contacts[] = new Self($contact['UID']);