Merge branch 'MDL-33576-2' of git://github.com/netspotau/moodle-mod_assign
authorDan Poltawski <dan@moodle.com>
Wed, 13 Jun 2012 03:28:39 +0000 (11:28 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 13 Jun 2012 03:28:39 +0000 (11:28 +0800)
mod/assign/locallib.php

index 86e8b92..0778a89 100644 (file)
@@ -894,7 +894,7 @@ class assign {
 
         if ($this->get_instance()->grade >= 0) {
             // Normal number
-            if ($editing) {
+            if ($editing && $this->get_instance()->grade > 0) {
                 if ($grade < 0) {
                     $displaygrade = '';
                 } else {