diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-03-22 10:08:48 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-03-22 10:14:15 +0100 |
commit | 63fa245461228225e196b43a8f338536358b76b2 (patch) | |
tree | 18c39f52255b8403601b89a06456471a14b9c4c3 /apps/provisioning_api/lib | |
parent | 6e7b7749bda5eab9d28197159a8f9fba91b71752 (diff) | |
download | nextcloud-server-63fa245461228225e196b43a8f338536358b76b2.tar.gz nextcloud-server-63fa245461228225e196b43a8f338536358b76b2.zip |
Fix quota return if unlimited
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index b1b110b5289..567f5f1c7db 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -880,7 +880,7 @@ class UsersController extends OCSController { } $quota = OC_Helper::computerFileSize($user->getQuota()); $data = [ - 'quota' => $quota, + 'quota' => $quota ? $quota : 'none', 'used' => 0 ]; } |