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 = '';
$output .= '<div '.$idbb.'class="bb"><div> </div></div>'."\n";
$output .= '</div>';
- $THEME->customcornersopen -= ($THEME->customcornersopen > 0) ? 1 : 0;
if ($return) {
return $output;