aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Group
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-17 10:43:23 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-22 11:42:53 +0100
commitea8f9a7e841061ed96f291aa3c9a413fe2402b5c (patch)
tree74097b752215fe63b583c2b239abc4f1d4d53089 /lib/private/Group
parentba1af2b22e5409c62ea2bdf7eb0e13c282ed70e8 (diff)
downloadnextcloud-server-ea8f9a7e841061ed96f291aa3c9a413fe2402b5c.tar.gz
nextcloud-server-ea8f9a7e841061ed96f291aa3c9a413fe2402b5c.zip
refactor: Repalce array_search with in_array in lib/
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Group')
-rw-r--r--lib/private/Group/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php
index 47475121ea0..da99187f130 100644
--- a/lib/private/Group/Manager.php
+++ b/lib/private/Group/Manager.php
@@ -371,7 +371,7 @@ class Manager extends PublicEmitter implements IGroupManager {
* @return bool if in group
*/
public function isInGroup($userId, $group) {
- return array_search($group, $this->getUserIdGroupIds($userId)) !== false;
+ return in_array($group, $this->getUserIdGroupIds($userId));
}
/**