Changeset 18044 for trunk/FACT++/www/schedule/save.php
- Timestamp:
- 12/29/14 22:06:33 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/schedule/save.php
r17707 r18044 96 96 // Note that there is no sanity check yet, therefore the data and the 97 97 // time variable must be consistent 98 // FIXME: This should be 11:59:59 the prev day to allow for 12:00 being 99 // the first possible entry, but this makes things below more complicated 98 100 $time = isset($_POST['t']) ? $_POST['t'] : "12:00:00"; 99 101 … … 160 162 // ---------------------------------------------------------------- 161 163 164 $last = $cut; 165 162 166 foreach ($data as $row) 163 167 { … … 183 187 $t = $d['hour']<12 ? $nextDay." ".$t : $day." ".$t; 184 188 185 if (!isset($last)) 186 { 187 $last = $t; 188 } 189 else 190 { 191 // Check all but the last task in a measurement whether 192 // the are not unlimited 193 if ($last==$t) 194 { 195 if ($measurements[$m]['fIsUnlimited']==true) 196 die("Unlimited task '".$measurements[$m]['fMeasurement']."' detected before end of observation\n[".$last."|".($id-1)."]"); 197 } 198 199 if ($last>$t) 200 die("Times not sequential\n[".$last."|".$t."]"); 201 $last = $t; 202 } 189 // Check all but the last task in a measurement whether 190 // the are not unlimited 191 if ($last==$t) 192 { 193 if ($measurements[$m]['fIsUnlimited']==true) 194 die("Unlimited task '".$measurements[$m]['fMeasurement']."' detected before end of observation\n[".$last."|".($id-1)."]"); 195 } 196 197 if ($last>$t) 198 die("Times not sequential\n[".$last."|".$t."]"); 199 200 $last = $t; 203 201 204 202 $m = $row[1]; // measurement
Note:
See TracChangeset
for help on using the changeset viewer.