From: Robin Appelman Date: Tue, 16 Apr 2013 23:08:27 +0000 (+0200) Subject: Fix OC_User::getDisplaynames when using numeric user id's X-Git-Tag: v5.0.8~78 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9700b84a62c3698738afb65306ba91382d630842;p=nextcloud-server.git Fix OC_User::getDisplaynames when using numeric user id's fixes #2948 --- diff --git a/lib/user.php b/lib/user.php index 1743a4af8f2..b405c36ab4d 100644 --- a/lib/user.php +++ b/lib/user.php @@ -528,7 +528,7 @@ class OC_User { foreach (self::$_usedBackends as $backend) { $backendDisplayNames = $backend->getDisplayNames($search, $limit, $offset); if (is_array($backendDisplayNames)) { - $displayNames = array_merge($displayNames, $backendDisplayNames); + $displayNames = $displayNames + $backendDisplayNames; } } asort($displayNames);