]> source.dussan.org Git - nextcloud-server.git/commitdiff
Initialize \OCP\AppFramework\Http\ZipResponse::$resources 25702/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 17 Feb 2021 18:59:27 +0000 (19:59 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 17 Feb 2021 21:28:28 +0000 (21:28 +0000)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/public/AppFramework/Http/ZipResponse.php

index 1e4b584fd20212e1f20a720054804ab2356060f2..a5cc82ebad86003ce56f9ace26d431a925ec6ee4 100644 (file)
@@ -38,7 +38,7 @@ use OCP\IRequest;
  */
 class ZipResponse extends Response implements ICallbackResponse {
        /** @var resource[] Files to be added to the zip response */
-       private $resources;
+       private $resources = [];
        /** @var string Filename that the zip file should have */
        private $name;
        private $request;