diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-30 15:31:34 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-30 15:31:34 +0200 |
commit | 80a3efe11677b1420a7bc45d9b623c2df24cdd79 (patch) | |
tree | 4a4a525faf76f9bed412d7ad25a28c54af82b750 /application/front/controller/admin | |
parent | 95158e7565b8f091e0781d30ef48d369c42e37c7 (diff) | |
download | Shaarli-80a3efe11677b1420a7bc45d9b623c2df24cdd79.tar.gz Shaarli-80a3efe11677b1420a7bc45d9b623c2df24cdd79.tar.zst Shaarli-80a3efe11677b1420a7bc45d9b623c2df24cdd79.zip |
Fix a bug preventing to edit bookmark with ID #0
Diffstat (limited to 'application/front/controller/admin')
-rw-r--r-- | application/front/controller/admin/ManageShaareController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/front/controller/admin/ManageShaareController.php b/application/front/controller/admin/ManageShaareController.php index ffb0dae4..59ba2de9 100644 --- a/application/front/controller/admin/ManageShaareController.php +++ b/application/front/controller/admin/ManageShaareController.php | |||
@@ -127,7 +127,7 @@ class ManageShaareController extends ShaarliAdminController | |||
127 | $this->checkToken($request); | 127 | $this->checkToken($request); |
128 | 128 | ||
129 | // lf_id should only be present if the link exists. | 129 | // lf_id should only be present if the link exists. |
130 | $id = $request->getParam('lf_id') ? intval(escape($request->getParam('lf_id'))) : null; | 130 | $id = $request->getParam('lf_id') !== null ? intval(escape($request->getParam('lf_id'))) : null; |
131 | if (null !== $id && true === $this->container->bookmarkService->exists($id)) { | 131 | if (null !== $id && true === $this->container->bookmarkService->exists($id)) { |
132 | // Edit | 132 | // Edit |
133 | $bookmark = $this->container->bookmarkService->get($id); | 133 | $bookmark = $this->container->bookmarkService->get($id); |