use $userId instead of $user
This commit is contained in:
parent
26342061b9
commit
264aaf9ffa
|
@ -291,11 +291,11 @@ class OC_Util {
|
||||||
/**
|
/**
|
||||||
* Get the quota of a user
|
* Get the quota of a user
|
||||||
*
|
*
|
||||||
* @param string $user
|
* @param string $userId
|
||||||
* @return int Quota bytes
|
* @return int Quota bytes
|
||||||
*/
|
*/
|
||||||
public static function getUserQuota($user) {
|
public static function getUserQuota($userId) {
|
||||||
$user = \OC::$server->getUserManager()->get($user);
|
$user = \OC::$server->getUserManager()->get($userId);
|
||||||
if (is_null($user)) {
|
if (is_null($user)) {
|
||||||
return \OCP\Files\FileInfo::SPACE_UNLIMITED;
|
return \OCP\Files\FileInfo::SPACE_UNLIMITED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue