openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit 3663fbd9c7f3dc1f7155fa4a3bc1289b9d124a9a
parent adf12d3b65e94c0fdae20fc09598c12590dc596a
Author: Jan Dankert <develop@jandankert.de>
Date:   Tue, 28 May 2019 22:05:20 +0200

Fix: Cast auf das Ergebnis, nicht auf die erste Variable - Damn!

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 = (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 ; + $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;