openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 2c75fdda5ce7ed127cce5f25fc58624393bfbd04
parent b4ce3a2e4616515de3355a3e508b82dc6d913c42
Author: Jan Dankert <devnull@localhost>
Date:   Fri,  1 Dec 2017 23:46:49 +0100

Fix: Attribute können leer sein, müssen aber trotzdem berücksichtigt werden.

Diffstat:
themes/default/include/html/text/Text.class.php | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/themes/default/include/html/text/Text.class.php b/themes/default/include/html/text/Text.class.php @@ -88,23 +88,23 @@ class TextComponent extends Component $value =''; - if ( !empty($this->key)) + if ( isset($this->key)) { $value = "'".$this->prefix."'.".$this->value($this->key).".'".$this->suffix."'"; $functions[] = "lang(@)"; } - elseif ( !empty($this->text)) + elseif ( isset($this->text)) { $value = $this->value($this->text); $functions[] = "lang(@)"; } - elseif ( !empty($this->var)) + elseif ( isset($this->var)) $value = '$'.$this->varname($this->var); - elseif ( !empty($this->raw)) + elseif ( isset($this->raw)) $value = "'".str_replace('_','&nbsp;',$this->raw)."'"; - elseif ( !empty($this->value)) + elseif ( isset($this->value)) $value = $this->value($this->value); foreach( array_reverse($functions) as $f )