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 17, 2016
commit 29565ec4239ef20c5a8ab360233482de0358a914
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