mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-16178 Fixed
This commit is contained in:
parent
923f607020
commit
05ec116569
@ -66,7 +66,7 @@
|
||||
$DB->delete_records('forum_ratings', array('post' => $postid, 'userid' => $USER->id));
|
||||
forum_update_grades($forum, $post->userid);
|
||||
|
||||
} else if ($oldrating = $DB->get_record('forum_ratings', 'userid', $USER->id, 'post', $post->id)) {
|
||||
} else if ($oldrating = $DB->get_record('forum_ratings', array('userid' => $USER->id, 'post' => $post->id))) {
|
||||
if ($rating != $oldrating->rating) {
|
||||
$oldrating->rating = $rating;
|
||||
$oldrating->time = time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user