aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/admin/ShaarePublishController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/front/controller/admin/ShaarePublishController.php')
-rw-r--r--application/front/controller/admin/ShaarePublishController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/front/controller/admin/ShaarePublishController.php b/application/front/controller/admin/ShaarePublishController.php
index 608f79cf..fd680ea0 100644
--- a/application/front/controller/admin/ShaarePublishController.php
+++ b/application/front/controller/admin/ShaarePublishController.php
@@ -169,7 +169,11 @@ class ShaarePublishController extends ShaarliAdminController
169 $title = $request->getParam('title'); 169 $title = $request->getParam('title');
170 $description = $request->getParam('description'); 170 $description = $request->getParam('description');
171 $tags = $request->getParam('tags'); 171 $tags = $request->getParam('tags');
172 $private = filter_var($request->getParam('private'), FILTER_VALIDATE_BOOLEAN); 172 if ($request->getParam('private') !== null) {
173 $private = filter_var($request->getParam('private'), FILTER_VALIDATE_BOOLEAN);
174 } else {
175 $private = $this->container->conf->get('privacy.default_private_links', false);
176 }
173 177
174 // If this is an HTTP(S) link, we try go get the page to extract 178 // If this is an HTTP(S) link, we try go get the page to extract
175 // the title (otherwise we will to straight to the edit form.) 179 // the title (otherwise we will to straight to the edit form.)