From a81f912d88b82d2c4bcb010c9c860027762e41f8 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Fri, 15 May 2020 22:03:09 +0300 Subject: [PATCH] correct book cookie --- app/routes/anpdf.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index f45f578..517ecc4 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -138,9 +138,10 @@ function bookmark_get($hash){ $bookcook = 'book_'.$hash; - if (isset($_COOKIE[$bookcook])) + if (isset($_COOKIE[$bookcook])){ echo $_COOKIE[$bookcook]; return $_COOKIE[$bookcook]; + } else return false;