Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1eab24d
)
Merge branch 'MDL-33699' of git://github.com/netspotau/moodle-mod_assign
author
Dan Poltawski
<dan@moodle.com>
Mon, 18 Jun 2012 05:49:16 +0000
(13:49 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 18 Jun 2012 05:49:16 +0000
(13:49 +0800)
mod/assign/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/assign/locallib.php
b/mod/assign/locallib.php
index
0f09d1d
..
a7466d1
100644
(file)
--- a/
mod/assign/locallib.php
+++ b/
mod/assign/locallib.php
@@
-2582,7
+2582,11
@@
class assign {
// different ways to indicate no grade
continue;
}
- if ($current->grade != $modified->grade) {
+ // Treat 0 and null as different values
+ if ($current->grade !== null) {
+ $current->grade = floatval($current->grade);
+ }
+ if ($current->grade !== $modified->grade) {
// grade changed
if ($this->grading_disabled($modified->userid)) {
continue;