]> git.mjollnir.org Git - moodle.git/commitdiff
Prints correct phase for newly created exercise (when phase is 0).
authorrkingdon <rkingdon>
Thu, 9 Sep 2004 21:17:07 +0000 (21:17 +0000)
committerrkingdon <rkingdon>
Thu, 9 Sep 2004 21:17:07 +0000 (21:17 +0000)
mod/exercise/index.php

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