commit c405305992b22d98dc4d649a732121dd82a82182
parent 818efa18d8ca91052069ad9eb56eb7957aa855c3
Author: Jan Dankert <develop@jandankert.de>
Date: Fri, 15 Nov 2019 23:56:23 +0100
Fix: #boolval() is not available in PHP 5.4
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/util/Mustache.class.php b/modules/util/Mustache.class.php
@@ -433,7 +433,7 @@ class MustacheBlock extends MustacheNode {
if ( !is_object($this->tag))
return true; // on root-block, there is no tag.
- $propIsTrue = boolval( $this->getValue( $data ) );
+ $propIsTrue = (boolean) $this->getValue( $data );
if ( $this->tag->type == MustacheTag::NEGATION )
$propIsTrue = ! $propIsTrue;