Skip to content

Commit

Permalink
MDL-61836 core_blog: Prevent randomness in comments order
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz authored and andrewnicols committed Apr 20, 2018
1 parent cd8a022 commit 0288333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static function export_user_data(approved_contextlist $contextlist) {
// 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);
Expand Down

0 comments on commit 0288333

Please sign in to comment.