diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-26 15:41:48 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-26 15:41:48 +0200 |
commit | 53e6d5fde32a917718a0658fb95f366dc7dfc248 (patch) | |
tree | 6510be3ee713a444a477aef8faf60a62fb47b165 /app/class/Page.php | |
parent | 0efeef6b6693d62675ec8a45e73c71f69e0a0362 (diff) | |
download | wcms-53e6d5fde32a917718a0658fb95f366dc7dfc248.tar.gz wcms-53e6d5fde32a917718a0658fb95f366dc7dfc248.zip |
user bookmarks use new object
+ shortcuts visible in backtopbar
Diffstat (limited to 'app/class/Page.php')
-rw-r--r-- | app/class/Page.php | 2 |
1 files changed, 1 insertions, 1 deletions
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))); } } |