use $userId instead of $user

This commit is contained in:
Jörn Friedrich Dreyer 2016-08-11 09:38:06 +02:00 committed by Roeland Jago Douma
parent 26342061b9
commit 264aaf9ffa
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 3 deletions

View File

@ -291,11 +291,11 @@ class OC_Util {
/**
* Get the quota of a user
*
* @param string $user
* @param string $userId
* @return int Quota bytes
*/
public static function getUserQuota($user) {
$user = \OC::$server->getUserManager()->get($user);
public static function getUserQuota($userId) {
$user = \OC::$server->getUserManager()->get($userId);
if (is_null($user)) {
return \OCP\Files\FileInfo::SPACE_UNLIMITED;
}