diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Collaboration/Collaborators/UserPlugin.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Config/UserMountCache.php | 5 | ||||
-rw-r--r-- | lib/private/Settings/Manager.php | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index c92f7bb0b6e..1d6e0fc0c06 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -101,9 +101,9 @@ class UserPlugin implements ISearchPlugin { $userEmail = $user->getEMailAddress(); $uid = (string) $uid; if ( - strtolower($uid) === $lowerSearch || + $lowerSearch !== '' && (strtolower($uid) === $lowerSearch || strtolower($userDisplayName) === $lowerSearch || - strtolower($userEmail) === $lowerSearch + strtolower($userEmail) === $lowerSearch) ) { if (strtolower($uid) === $lowerSearch) { $foundUserById = true; diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 9cf3b43a431..32bfd5a71f3 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -409,4 +409,9 @@ class UserMountCache implements IUserMountCache { $result->closeCursor(); return $results; } + + public function clear(): void { + $this->cacheInfoCache = new CappedMemoryCache(); + $this->mountsForUsers = new CappedMemoryCache(); + } } diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php index 5b6bea63c6b..4ab5cf61965 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -357,7 +357,8 @@ class Manager implements IManager { ]; $legacyForms = \OC_App::getForms('personal'); - if (!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) { + if ((!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) + || count($this->getPersonalSettings('additional')) > 1) { $sections[98] = [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))]; } |