From 0ce17b662fd8693ece03df41b05b8c7fc78c7792 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Tue, 24 Feb 2009 08:24:58 +0000 Subject: [PATCH] "REPOSITORY/MDL-13766, check varible before setting style" --- repository/javascript.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5