openrat-cms

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

commit 5a1f25de7a2668cfe121dc51702d25d3dcdc9c21
parent 19624c10c6681ddabf9915dab5ce25e5ba81577c
Author: dankert <devnull@localhost>
Date:   Thu, 15 Feb 2007 23:11:13 +0100

?bergabevariable "last_exec" von "if" nach "else"

Diffstat:
themes/default/include/html/else.inc.php | 2+-
themes/default/include/html/if.inc.php | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/else.inc.php b/themes/default/include/html/else.inc.php @@ -1,4 +1,4 @@ <?php - else + if ( !$last_exec ) { ?> \ No newline at end of file diff --git a/themes/default/include/html/if.inc.php b/themes/default/include/html/if.inc.php @@ -48,7 +48,7 @@ elseif ( is_array($$attr_present) ) $exec = (count($$attr_present)>0); elseif ( is_bool($$attr_present) ) - $exec = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else @@ -82,6 +82,8 @@ unset($attr_value); unset($attr_var); + $last_exec = $exec; + if ( $exec ) { ?> \ No newline at end of file