397 foreach ($mash->MASH_STEPS->MASH_STEP as $step) { |
397 foreach ($mash->MASH_STEPS->MASH_STEP as $step) { |
398 |
398 |
399 if ($comma) |
399 if ($comma) |
400 $steps .= ','; |
400 $steps .= ','; |
401 $comma = TRUE; |
401 $comma = TRUE; |
402 $steps .= '{"name":"' . mysqli_real_escape_string($db, $step->NAME) . '"'; |
402 $steps .= '{"step_name":"' . mysqli_real_escape_string($db, $step->NAME) . '"'; |
403 if ($step->TYPE) { |
403 if ($step->TYPE) { |
404 $steps .= ',"type":"' . $step->TYPE . '"'; |
404 $steps .= ',"step_type":"' . $step->TYPE . '"'; |
405 } |
405 } |
406 if ($step->STEP_TEMP) { |
406 if ($step->STEP_TEMP) { |
407 $steps .= ',"step_temp":"' . $step->STEP_TEMP . '"'; |
407 $steps .= ',"step_temp":"' . $step->STEP_TEMP . '"'; |
408 } |
408 } |
409 if ($step->STEP_TIME) { |
409 if ($step->STEP_TIME) { |