Skip to content

Commit 4e812e9

Browse files
committed
fix SQL FORM to FROM
1 parent 2ed0b8f commit 4e812e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/privacy/provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ public static function delete_data_for_users(approved_userlist $userlist) {
560560
$commentsids = array_column($comments, 'id');
561561
list($commentinsql, $commentinparams) = $DB->get_in_or_equal($commentsids, SQL_PARAMS_NAMED);
562562

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

573573
// Delete pictures in comments.
574-
$DB->execute("DELETE FORM {files} imgs
574+
$DB->execute("DELETE FROM {files} imgs
575575
WHERE imgs.component = 'mod_pdfannotator'
576576
AND imgs.filearea = 'post'
577577
AND imgs.userid {$userinsql}

0 commit comments

Comments
 (0)