mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Prevent some notices from bad calls to print_side_block_end
This commit is contained in:
parent
5ccb85f048
commit
4eac76f75a
@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user