* finish the task #560.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-10-26 02:17:49 +00:00
parent 21f64f78b4
commit f34f7d8e7b
4 changed files with 22 additions and 6 deletions
+11 -4
View File
@@ -219,11 +219,18 @@ class testtaskModel extends model
}
/* Create result of every step. */
foreach($this->post->steps as $stepID =>$stepResult)
if(isset($this->post->steps))
{
$step['result'] = $stepResult;
$step['real'] = $this->post->reals[$stepID];
$stepResults[$stepID] = $step;
foreach($this->post->steps as $stepID =>$stepResult)
{
$step['result'] = $stepResult;
$step['real'] = $this->post->reals[$stepID];
$stepResults[$stepID] = $step;
}
}
else
{
$stepResults = array();
}
/* Pares the extras */