aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-12-16 14:04:32 +0100
committerArthurHoaro <arthur@hoa.ro>2020-12-16 14:04:32 +0100
commit6a3a78d023aa320138bb88505b58347db268264a (patch)
tree127cbde2d900fb1cf9d2f5999941dfe3d79affbd /application/front/controller
parente4b8330e459b598328bf250208386c06ec257b08 (diff)
downloadShaarli-6a3a78d023aa320138bb88505b58347db268264a.tar.gz
Shaarli-6a3a78d023aa320138bb88505b58347db268264a.tar.zst
Shaarli-6a3a78d023aa320138bb88505b58347db268264a.zip
Fix: synchronous metadata retrieval is failing in strict mode
Metadata can now only be string or null. Fixes #1653
Diffstat (limited to 'application/front/controller')
-rw-r--r--application/front/controller/admin/ShaarePublishController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/front/controller/admin/ShaarePublishController.php b/application/front/controller/admin/ShaarePublishController.php
index 4cbfcdc5..fb9cacc2 100644
--- a/application/front/controller/admin/ShaarePublishController.php
+++ b/application/front/controller/admin/ShaarePublishController.php
@@ -227,7 +227,7 @@ class ShaarePublishController extends ShaarliAdminController
227 227
228 protected function buildFormData(array $link, bool $isNew, Request $request): array 228 protected function buildFormData(array $link, bool $isNew, Request $request): array
229 { 229 {
230 $link['tags'] = strlen($link['tags']) > 0 230 $link['tags'] = $link['tags'] !== null && strlen($link['tags']) > 0
231 ? $link['tags'] . $this->container->conf->get('general.tags_separator', ' ') 231 ? $link['tags'] . $this->container->conf->get('general.tags_separator', ' ')
232 : $link['tags'] 232 : $link['tags']
233 ; 233 ;