mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
Actually rename the variable
This commit is contained in:
parent
c8207312c7
commit
20c2aaab00
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class Quota extends Wrapper {
|
|||
public function __construct($parameters) {
|
||||
$this->storage = $parameters['storage'];
|
||||
$this->quota = $parameters['quota'];
|
||||
$this->freeSpaceRoot = isset($parameters['root']) ? $parameters['root'] : '';
|
||||
$this->sizeRoot = isset($parameters['root']) ? $parameters['root'] : '';
|
||||
}
|
||||
|
||||
protected function getSize($path) {
|
||||
|
|
@ -49,7 +49,7 @@ class Quota extends Wrapper {
|
|||
if ($this->quota < 0) {
|
||||
return $this->storage->free_space($path);
|
||||
} else {
|
||||
$used = $this->getSize($this->freeSpaceRoot);
|
||||
$used = $this->getSize($this->sizeRoot);
|
||||
if ($used < 0) {
|
||||
return \OC\Files\SPACE_NOT_COMPUTED;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue