Fix: synchronous metadata retrieval is failing in strict mode

Metadata can now only be string or null.

Fixes 
This commit is contained in:
ArthurHoaro 2020-12-16 14:04:32 +01:00
parent e4b8330e45
commit 6a3a78d023
3 changed files with 9 additions and 4 deletions
application/front/controller/admin

View file

@ -227,7 +227,7 @@ class ShaarePublishController extends ShaarliAdminController
protected function buildFormData(array $link, bool $isNew, Request $request): array
{
$link['tags'] = strlen($link['tags']) > 0
$link['tags'] = $link['tags'] !== null && strlen($link['tags']) > 0
? $link['tags'] . $this->container->conf->get('general.tags_separator', ' ')
: $link['tags']
;