File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments