formatting fixes, bug fixes and support impl.

This commit is contained in:
Dennis Eichhorn 2021-07-04 18:27:20 +02:00
parent 7867c41092
commit 1f2a7eb88a
2 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ final class ApiController extends Controller
}
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
$request->getData('name') ?? '',
[$request->getData('name') ?? ''],
$uploadedFiles,
$request->header->account,
__DIR__ . '/../../../Modules/Media/Files/Modules/ClientManagement/' . ($request->getData('client') ?? '0'),

View File

@ -117,7 +117,7 @@ ClientAttributeTypeL11n $l11n;
{
if ($l11n instanceof ClientAttributeTypeL11n) {
$this->l11n = $l11n;
} elseif ($this->l11n instanceof ClientAttributeTypeL11n) {
} elseif (isset($this->l11n) && $this->l11n instanceof ClientAttributeTypeL11n) {
$this->l11n->title = $l11n;
} else {
$this->l11n = new ClientAttributeTypeL11n();