openrat-cms

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

commit 8085ad72d8b59252a8f74c1bdf239e76a0eec3fd
parent 86f41f56c5bd34057b7f9f984d306aaec98e087a
Author: dankert <devnull@localhost>
Date:   Sun, 29 Jan 2006 18:29:23 +0100

Besondere Behandlung von "boolschen" Variablen

Diffstat:
themes/default/include/html/if.inc.php | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/themes/default/include/html/if.inc.php b/themes/default/include/html/if.inc.php @@ -23,6 +23,8 @@ $exec = true; elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; else $exec = empty( $$attr_empty ); } @@ -34,6 +36,10 @@ $exec = false; elseif ( is_array($$attr_present) ) $exec = (count($$attr_present)>0); + elseif ( is_bool($$attr_present) ) + $exec = true; + elseif ( is_numeric($$attr_present) ) + $exec = $$attr_present>=0; else $exec = !empty( $$attr_present ); }