From 4eac76f75a03d620440ed64ec8222ba35fdfb416 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 9 Feb 2005 16:17:03 +0000 Subject: [PATCH] Prevent some notices from bad calls to print_side_block_end --- lib/weblib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 4b708e24817..53f01e51b35 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3583,7 +3583,9 @@ function print_side_block_start($heading='', $attributes = array()) { function print_side_block_end($attributes) { echo ''; // IE workaround: if I do it THIS way, it works! WTF? - echo ''; + if (isset($attributes['id'])) { + echo ''; + } }