Merge pull request #1664 from ArthurHoaro/fix/metadata-sync
Fix: synchronous metadata retrieval is failing in strict mode
This commit is contained in:
commit
fe58bdcd9e
3 changed files with 9 additions and 4 deletions
application/front/controller/admin
|
@ -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']
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue