From f68e6130db359a98749f0686af8a305ac41ba4d3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 31 May 2023 12:03:54 +0000 Subject: [PATCH] fix getters/setters --- Controller/ApiController.php | 2 +- Controller/Controller.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 0f2a1b1..befaaae 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -369,7 +369,7 @@ final class ApiController extends Controller $collectionId = 0; $uploaded = []; - if ($request->hasFiles()) { + if (!empty($request->files)) { $path = '/Modules/Workflow/' . $request->getData('name'); /** @var \Modules\Media\Models\Media[] $uploaded */ diff --git a/Controller/Controller.php b/Controller/Controller.php index 7fdbfe3..01f6adb 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -64,7 +64,7 @@ class Controller extends ModuleAbstract * @var string[] * @since 1.0.0 */ - protected static array $providing = []; + public static array $providing = []; /** * Dependencies. @@ -72,5 +72,5 @@ class Controller extends ModuleAbstract * @var string[] * @since 1.0.0 */ - protected static array $dependencies = []; + public static array $dependencies = []; }