diff --git a/Controller/ApiController.php b/Controller/ApiController.php index b4b35f3..5a4d19b 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -256,7 +256,7 @@ final class ApiController extends Controller ); } - $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( + $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( (string) ($request->getData('name') ?? ''), (string) ($request->getData('description') ?? ''), $files, @@ -345,7 +345,7 @@ final class ApiController extends Controller '' ); - $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( + $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( (string) ($request->getData('name') ?? ''), (string) ($request->getData('description') ?? ''), $files,