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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-11 11:11:43 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-14 15:48:45 +0300
commita9ed80869a02e6ef44b53bdf1f47cb6e179a6bfd (patch)
tree9146219b5ed285490951980d5e47d8dad272c522 /apps
parent8e49a99896eb2f0cdb43958d49d63341a4c7f342 (diff)
Correctly lower the search input as well
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/api/sharees.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/api/sharees.php b/apps/files_sharing/api/sharees.php
index 88cf783b2a1..718be4dece9 100644
--- a/apps/files_sharing/api/sharees.php
+++ b/apps/files_sharing/api/sharees.php
@@ -147,8 +147,8 @@ class Sharees {
$foundUserById = false;
foreach ($users as $uid => $userDisplayName) {
- if (strtolower($uid) === $search || strtolower($userDisplayName) === $search) {
- if (strtolower($uid) === $search) {
+ if (strtolower($uid) === strtolower($search) || strtolower($userDisplayName) === strtolower($search)) {
+ if (strtolower($uid) === strtolower($search)) {
$foundUserById = true;
}
$this->result['exact']['users'][] = [
@@ -221,7 +221,7 @@ class Sharees {
}
foreach ($groups as $gid) {
- if (strtolower($gid) === $search) {
+ if (strtolower($gid) === strtolower($search)) {
$this->result['exact']['groups'][] = [
'label' => $gid,
'value' => [
@@ -282,8 +282,8 @@ class Sharees {
}
foreach ($cloudIds as $cloudId) {
list(, $serverUrl) = $this->splitUserRemote($cloudId);
- if (strtolower($contact['FN']) === $search || strtolower($cloudId) === $search) {
- if (strtolower($cloudId) === $search) {
+ if (strtolower($contact['FN']) === strtolower($search) || strtolower($cloudId) === strtolower($search)) {
+ if (strtolower($cloudId) === strtolower($search)) {
$foundRemoteById = true;
}
$this->result['exact']['remotes'][] = [