mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-52597 mod_forum: Remove duplicated query
This commit is contained in:
parent
3d4837f915
commit
9787b9e02f
@ -197,7 +197,6 @@ class mod_forum_generator extends testing_module_generator {
|
||||
if (isset($timemodified)) {
|
||||
// Enforce the time modified.
|
||||
$post = $DB->get_record('forum_posts', array('discussion' => $record->id));
|
||||
$post = $DB->get_record('forum_posts', array('discussion' => $record->id));
|
||||
$record->timemodified = $timemodified;
|
||||
$post->modified = $post->created = $timemodified;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user