check whether user belongs to the backend before calling getHome()
This commit is contained in:
parent
335b6cd060
commit
a721f7d59f
|
@ -467,7 +467,7 @@ class OC_User {
|
||||||
*/
|
*/
|
||||||
public static function getHome($uid) {
|
public static function getHome($uid) {
|
||||||
foreach(self::$_usedBackends as $backend) {
|
foreach(self::$_usedBackends as $backend) {
|
||||||
if($backend->implementsActions(OC_USER_BACKEND_GET_HOME)) {
|
if($backend->implementsActions(OC_USER_BACKEND_GET_HOME) && $backend->userExists($uid)) {
|
||||||
$result=$backend->getHome($uid);
|
$result=$backend->getHome($uid);
|
||||||
if($result) {
|
if($result) {
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in New Issue