commit 1f359bff35d586cab0bc989387071aeda2cc5cde parent 7227d8e3dad720caa2c06cb665d260809c775bae Author: Jan Dankert <develop@jandankert.de> Date: Tue, 28 May 2019 21:30:40 +0200 Fix: Cast to boolean with "(boolean)", because boolval() is only available in PHP >= 5.5. Diffstat:
modules/cms-core/model/Element.class.php | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/cms-core/model/Element.class.php b/modules/cms-core/model/Element.class.php @@ -250,11 +250,11 @@ SQL $this->dateformat = $prop['dateformat']; $this->wiki = $prop['format'] == self::ELEMENT_FORMAT_WIKI; $this->format = $prop['format']; - $this->withIcon = boolval($prop['flags'] & self::ELEMENT_FLAG_WITH_ICON ); - $this->html = boolval($prop['flags'] & self::ELEMENT_FLAG_HTML_ALLOWED ); - $this->allLanguages = boolval($prop['flags'] & self::ELEMENT_FLAG_ALL_LANGUAGES); - $this->writable = boolval($prop['flags'] & self::ELEMENT_FLAG_WRITABLE ); - $this->inherit = boolval($prop['flags'] & self::ELEMENT_FLAG_INHERIT ); + $this->withIcon = (boolean) $prop['flags'] & self::ELEMENT_FLAG_WITH_ICON ; + $this->html = (boolean) $prop['flags'] & self::ELEMENT_FLAG_HTML_ALLOWED ; + $this->allLanguages = (boolean) $prop['flags'] & self::ELEMENT_FLAG_ALL_LANGUAGES; + $this->writable = (boolean) $prop['flags'] & self::ELEMENT_FLAG_WRITABLE ; + $this->inherit = (boolean) $prop['flags'] & self::ELEMENT_FLAG_INHERIT ; if ( !$this->writable) $this->withIcon = false;