summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-24 13:02:19 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-24 23:54:38 +0100
commite039015ca1d600a227b4cd0665192f3e22f3d1f2 (patch)
treee55343f989d8f2bca56b449596087f42f05b9af0 /lib/user.php
parentca874a3ad776c9fd22c7bcbad81f493cfc551661 (diff)
downloadnextcloud-server-e039015ca1d600a227b4cd0665192f3e22f3d1f2.tar.gz
nextcloud-server-e039015ca1d600a227b4cd0665192f3e22f3d1f2.zip
prevent errors when a user backends gives an invalid result
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index 34f44f572e0..0746fcc6eb4 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -321,7 +321,10 @@ class OC_User {
$users=array();
foreach(self::$_usedBackends as $backend){
if($backend->implementsActions(OC_USER_BACKEND_GET_USERS)){
- $users=array_merge($users,$backend->getUsers());
+ $backendUsers=$backend->getUsers();
+ if(is_array($backendUsers)){
+ $users=array_merge($users,$backendUsers);
+ }
}
}
return $users;