From 8e501a45f0d4aadd62511d0b7aa911e2cd396dee Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Sun, 11 Nov 2007 15:04:34 +0000 Subject: [PATCH] merged from 1.9 :: Added the check, if all opend custom_corners are closed. This way it's possible to add the close call in the footer which closes eventually open ccs. --- lib/custom_corners_lib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/custom_corners_lib.php b/lib/custom_corners_lib.php index 32d78c4865..ccd4a50772 100755 --- a/lib/custom_corners_lib.php +++ b/lib/custom_corners_lib.php @@ -61,6 +61,12 @@ function print_custom_corners_start($clearfix=false, $return=false, $idbase=null function print_custom_corners_end($return=false, $idbase=null) { global $THEME; + if ($THEME->customcornersopen <= 0) { + return ''; + } + + $THEME->customcornersopen -= ($THEME->customcornersopen > 0) ? 1 : 0; + /// Analise if we want ids for the custom corner elements $idbb = ''; @@ -74,7 +80,6 @@ function print_custom_corners_end($return=false, $idbase=null) { $output .= '
 
'."\n"; $output .= ''; - $THEME->customcornersopen -= ($THEME->customcornersopen > 0) ? 1 : 0; if ($return) { return $output; -- 2.39.5