Skip to content

Commit

Permalink
MDL-16178 Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 22, 2008
1 parent 923f607 commit 05ec116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/rate.php
Expand Up @@ -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();
Expand Down

0 comments on commit 05ec116

Please sign in to comment.