mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup
This commit is contained in:
parent
a8c31db2a3
commit
0bcf8b6f0d
10 changed files with 21 additions and 83 deletions
|
@ -90,9 +90,7 @@
|
|||
$newrating->post = $post->id;
|
||||
$newrating->rating = $rating;
|
||||
|
||||
if (! $DB->insert_record('forum_ratings', $newrating)) {
|
||||
print_error('cannotinsertrate', 'error', '', (object)array('id'=>$postid, 'rating'=>$rating));
|
||||
}
|
||||
$DB->insert_record('forum_ratings', $newrating);
|
||||
forum_update_grades($forum, $post->userid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue