Skip to content

Commit

Permalink
fix SQL FORM to FROM
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrita1991 committed Feb 11, 2025
1 parent 2ed0b8f commit 4e812e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public static function delete_data_for_users(approved_userlist $userlist) {
$commentsids = array_column($comments, 'id');
list($commentinsql, $commentinparams) = $DB->get_in_or_equal($commentsids, SQL_PARAMS_NAMED);

$DB->execute("DELETE FORM {pdfannotator_votes} votes
$DB->execute("DELETE FROM {pdfannotator_votes} votes
WHERE vote.userid {$userinsql}
AND vote.commentid {$commentinsql}",
array_merge($userinparams, $commentinparams));
Expand All @@ -571,7 +571,7 @@ public static function delete_data_for_users(approved_userlist $userlist) {
$DB->delete_records_select('pdfannotator_comments', $sql, $params);

// Delete pictures in comments.
$DB->execute("DELETE FORM {files} imgs
$DB->execute("DELETE FROM {files} imgs
WHERE imgs.component = 'mod_pdfannotator'
AND imgs.filearea = 'post'
AND imgs.userid {$userinsql}
Expand Down

0 comments on commit 4e812e9

Please sign in to comment.