From: defacer Date: Tue, 8 Feb 2005 00:53:55 +0000 (+0000) Subject: Fixing this to not show notices if a block doesn't have an id attribute. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=86a956a42ab486e89fc189f08d9a220d18df4c83;p=moodle.git Fixing this to not show notices if a block doesn't have an id attribute. --- diff --git a/lib/weblib.php b/lib/weblib.php index 54583e6abd..ee25af587b 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3547,19 +3547,21 @@ function print_side_block_start($heading='', $attributes = array()) { echo ''; if ($heading) { // orig echo ''; - echo ' - - - - '; + '; + } + echo ''; } // orig echo '
'.$heading.'
' - .$heading. - '
+ echo '
'.$heading; + if(isset($attributes['id'])) { + echo ' -
'; - echo '
"; + if(isset($attributes['id'])) { + echo '
'; + } + else { + echo '
'; + } } @@ -3569,10 +3571,12 @@ function print_side_block_start($heading='', $attributes = array()) { function print_side_block_end($attributes = array()) { echo '
'; // js call to set block display state which is saved in cookie. - echo "\n "; - echo "\n"; + if(isset($attributes['id'])) { + echo "\n "; + echo "\n"; + } }