Skip to content

Commit

Permalink
use $userId instead of $user
Browse files Browse the repository at this point in the history
  • Loading branch information
butonic authored and rullzer committed Aug 14, 2016
1 parent 2634206 commit 264aaf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/private/legacy/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ public static function isDefaultExpireDateEnforced() {
/**
* 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;
}
Expand Down

0 comments on commit 264aaf9

Please sign in to comment.