From 53e6d5fde32a917718a0658fb95f366dc7dfc248 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 26 Apr 2020 15:41:48 +0200 Subject: user bookmarks use new object + shortcuts visible in backtopbar --- app/class/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/class/Page.php') diff --git a/app/class/Page.php b/app/class/Page.php index da149f7..43cf387 100644 --- a/app/class/Page.php +++ b/app/class/Page.php @@ -387,7 +387,7 @@ class Page extends Dbitem public function setid($id) { - if (strlen($id) <= Model::MAX_ID_LENGTH and is_string($id)) { + if (is_string($id) && strlen($id) <= Model::MAX_ID_LENGTH) { $this->id = strip_tags(strtolower(str_replace(" ", "", $id))); } } -- cgit v1.2.3