]> source.dussan.org Git - nextcloud-server.git/commitdiff
use $userId instead of $user 910/head
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 11 Aug 2016 07:38:06 +0000 (09:38 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 17 Aug 2016 13:51:36 +0000 (15:51 +0200)
lib/private/legacy/util.php

index cea7847b3d3f877d01c8156043b3a4ac7691de6d..a31d02dc01ef064926899e4804ef0969a3057385 100644 (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;
                }