mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-61836 core_blog: Prevent randomness in comments order
This commit is contained in:
parent
cd8a0226de
commit
0288333c0b
@ -212,7 +212,7 @@ class provider implements
|
||||
// Loop over each blog entry in context.
|
||||
$sql = "userid = :userid AND module IN (:blog, :blogext) AND id $insql";
|
||||
$params = array_merge($inparams, ['userid' => $contextuserid, 'blog' => 'blog', 'blogext' => 'blog_external']);
|
||||
$recordset = $DB->get_recordset_select('post', $sql, $params);
|
||||
$recordset = $DB->get_recordset_select('post', $sql, $params, 'id');
|
||||
foreach ($recordset as $record) {
|
||||
|
||||
$subject = format_string($record->subject);
|
||||
|
Loading…
x
Reference in New Issue
Block a user