Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use $userId instead of $user
  • Loading branch information
butonic authored and rullzer committed Aug 14, 2016
commit 264aaf9ffaf71b2fc8a6bd2f5d5c9bf4a6d403de
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