diff options
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))); } } |