From: dongsheng Date: Tue, 24 Feb 2009 08:24:58 +0000 (+0000) Subject: "REPOSITORY/MDL-13766, check varible before setting style" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0ce17b662fd8693ece03df41b05b8c7fc78c7792;p=moodle.git "REPOSITORY/MDL-13766, check varible before setting style" --- diff --git a/repository/javascript.php b/repository/javascript.php index fda8c65ae5..50706986db 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -364,7 +364,9 @@ _client.print_instances = function() { for(var cc in _client.repos){ var tmp_id = 'repo-call-$suffix-'+ _client.repos[cc].id; var el = document.getElementById(tmp_id); - el.style.background = 'transparent'; + if(el){ + el.style.background = 'transparent'; + } } this.style.background = '#CCC'; var re = /repo-call-$suffix-(\d+)/i;