Index: trunk/MagicSoft/Mars/datacenter/db/include.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/include.php	(revision 9249)
+++ trunk/MagicSoft/Mars/datacenter/db/include.php	(revision 9299)
@@ -58,5 +58,6 @@
     case 0: $txt .= ""; break;
     case 1: $txt .= "NOT (IsNull(" . $name . ") OR " . $name . "='1970-01-01 00:00:00') AND "; break;
-    case 2: $txt .= "IsNull(" . $name . ") AND IsNull(fStartTime) AND IsNull(fFailedTime) AND NOT IsNull(" . $needs[$name] . ") AND "; break;
+//    case 2: $txt .= "IsNull(" . $name . ") AND IsNull(fStartTime) AND IsNull(fFailedTime) AND NOT IsNull(" . $needs[$name] . ") AND "; break; //not done but step before is done
+    case 2: $txt .= "IsNull(" . $name . ") AND "; break; //not done no matter what status of previous step is
     case 3: $txt .= $name ."='1970-01-01 00:00:00' AND "; break;
     case 4: $txt .= " (IsNull(" . $name . ") AND IsNull(fFailedTime) AND NOT IsNull(fStartTime) AND date_sub(Now(),interval 12 hour) < fStartTime AND NOT IsNull(" . $needs[$name] . ")) AND "; break;
@@ -252,6 +253,6 @@
 function PrintText($result0)
 {
-    header("Content-type: application/octet");
-    header("Content-Disposition: attachment; filename=query-result.txt");
+//    header("Content-type: application/octet");
+//    header("Content-Disposition: attachment; filename=query-result.txt");
 
     while ($row0 = mysql_fetch_assoc($result0))
@@ -317,6 +318,6 @@
         if ($key==$column)
         {
-            if ($element>0)
-                printf ("FIXED: %s<BR>", $column);
+//            if ($element>0)
+//                printf ("FIXED: %s<BR>", $column);
             return $element;
         }
