Index: schedule/Module/control.php
===================================================================
--- schedule/Module/control.php	(revision 17452)
+++ schedule/Module/control.php	(revision 17453)
@@ -470,7 +470,4 @@
 					newInnertable.appendChild(newtr<?php echo $cnt; ?>);			
 			<?php
-		
-					$cnt++;
-					$prevtimestamp = $timestamp;
 			}
 			?>
@@ -505,4 +502,6 @@
 	
 		<?php
+					$cnt++;
+					$prevtimestamp = $timestamp;
 		}
 		if(mysql_num_rows($fetch)<1)
