Prevent some notices from bad calls to print_side_block_end

This commit is contained in:
moodler 2005-02-09 16:17:03 +00:00
parent 5ccb85f048
commit 4eac76f75a

View File

@ -3583,7 +3583,9 @@ function print_side_block_start($heading='', $attributes = array()) {
function print_side_block_end($attributes) {
echo '</td></tr></tbody></table>';
// IE workaround: if I do it THIS way, it works! WTF?
echo '<script type="text/javascript"><!-- '."\n".'elementCookieHide("'.$attributes['id'].'"); '."\n".'--></script>';
if (isset($attributes['id'])) {
echo '<script type="text/javascript"><!-- '."\n".'elementCookieHide("'.$attributes['id'].'"); '."\n".'--></script>';
}
}