From 6c494e8439249b74b58e0e7aad5f5351c3e8da36 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 27 Sep 2021 12:17:41 +0545 Subject: [PATCH] fix undefined param --- app/controllers/api/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 2c1bcc0efc..ef905361ad 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -732,7 +732,7 @@ App::post('/v1/storage/buckets/:bucketId/files') ; $usage - ->setParam('storage', $sizeActual) + ->setParam('storage', $sizeActual ?? 0) ->setParam('storage.files.create', 1) ->setParam('bucketId', $bucketId) ;