Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16433)
+++ schedule/Module/calendar.php	(revision 16434)
@@ -111,6 +111,6 @@
 							//int sources = 0;
 							
-								for(sources=0;sources<source.length;sources++)
-								  {
+								//for(sources=0;sources<source.length;sources++)
+								 // {
 								if (window.XMLHttpRequest)
 								  {// code for IE7+, Firefox, Chrome, Opera, Safari
@@ -128,5 +128,5 @@
 									{
 											
-												Data[sources]= new Array();
+												Data[1]= new Array();
 												//Data[sources]= new Array();
 												
@@ -135,5 +135,5 @@
 												{
 													rows=line[row].split(',');
-													Data[sources].push(rows[4]);
+													Data[1].push(rows[4]);
 												}
 											
@@ -144,8 +144,8 @@
 								}
 								
-								xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true);
+								xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[1])+"&time="+year+"-"+month+"-"+day,true);
 								xmlhttp.send();
-								document.getElementById('data').innerHTML=source.length+""+sources;
-								}
+								document.getElementById('data').innerHTML=source.length+""+source[1];
+								//}
 							
 							function GraphData(array, index)
