Index: trunk/www/dch/obs_summary.php
===================================================================
--- trunk/www/dch/obs_summary.php	(revision 19449)
+++ trunk/www/dch/obs_summary.php	(revision 19450)
@@ -80,4 +80,5 @@
 
 $suspend = false;
+$doubleresume=false;
 $prev_data = array();
 
@@ -94,5 +95,8 @@
         // Sanity check: There is not much we can do
         if (empty($prev_data) || !$suspend)
+        {
+           $doubleresume=true;
            continue;
+        }
 
         $prev_data['fStart'] = $array[$i]['fStart'];
@@ -116,5 +120,9 @@
     $data .= "'".$array[$i]['fSourceName']."',";
     $data .= fmt($array[$i]['fStart']).",";
-    $data .= fmt($array[$i+1]['fStart']).",";
+    // in case two resumes are scheduled without suspend inbetween, the stop of a later observations needs to be used
+    if ($array[$i+1]['fMeasurementTypeName']=='Resume' && !$suspend)
+        $data .= fmt($array[$i+2]['fStart']).",";
+    else
+        $data .= fmt($array[$i+1]['fStart']).",";
     $data .= "],\n";
 
@@ -122,6 +130,11 @@
     $html2 .= "  <td>".$array[$i]['fStart']."|</td>\n";
     $html2 .= "  <td>".$array[$i]["fSourceName"]."</td>\n";
-    $html2 .= "  <td>|".$array[$i+1]["fStart"]."|</td>\n";
+    // in case two resumes are scheduled without suspend inbetween, the stop of a later observations needs to be used
+    if ($array[$i+1]['fMeasurementTypeName']=='Resume' && !$suspend)
+        $html2 .= "  <td>|".$array[$i+2]["fStart"]."|</td>\n";
+    else
+        $html2 .= "  <td>|".$array[$i+1]["fStart"]."|</td>\n";
     $html2 .= " </tr>\n";
+    $doubleresume=false;
 }
 
