aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/admin/ShaarePublishController.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-12-29 11:44:10 +0100
committerGitHub <noreply@github.com>2020-12-29 11:44:10 +0100
commitfe58bdcd9e0ddca8a2a99142dc9eaee8845efa67 (patch)
tree01ab39a60959866294926f35ac1500ee1e436c79 /application/front/controller/admin/ShaarePublishController.php
parent8ed5fbef8f2a5e666f80be0c38930b92672d351a (diff)
parent6a3a78d023aa320138bb88505b58347db268264a (diff)
downloadShaarli-fe58bdcd9e0ddca8a2a99142dc9eaee8845efa67.tar.gz
Shaarli-fe58bdcd9e0ddca8a2a99142dc9eaee8845efa67.tar.zst
Shaarli-fe58bdcd9e0ddca8a2a99142dc9eaee8845efa67.zip
Merge pull request #1664 from ArthurHoaro/fix/metadata-sync
Fix: synchronous metadata retrieval is failing in strict mode
Diffstat (limited to 'application/front/controller/admin/ShaarePublishController.php')
-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 ;