Prints correct phase for newly created exercise (when phase is 0).

This commit is contained in:
rkingdon 2004-09-09 21:17:07 +00:00
parent d08e0e1321
commit 3e906ba934

View file

@ -72,6 +72,7 @@
if (isteacher($course->id)) { if (isteacher($course->id)) {
$phase = ''; $phase = '';
switch ($exercise->phase) { switch ($exercise->phase) {
case 0:
case 1: $phase = get_string("phase1short", "exercise"); case 1: $phase = get_string("phase1short", "exercise");
break; break;
case 2: $phase = get_string("phase2short", "exercise"); case 2: $phase = get_string("phase2short", "exercise");