Skip to content

Commit

Permalink
wpdb prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanaldea89 committed Feb 16, 2023
1 parent da8b105 commit 2eaaf28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/rsvp_frontend.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function rsvp_handlenewattendee( $output, $text ) {
function rsvp_handleAdditionalQuestions( $attendee_id, $form_name ) {
global $wpdb;

$wpdb->query( $wpdb->get_results( 'DELETE FROM ' . ATTENDEE_ANSWERS . ' WHERE attendeeID = %d', absint( $attendee_id ) ) );
$wpdb->query( $wpdb->prepare( 'DELETE FROM ' . ATTENDEE_ANSWERS . ' WHERE attendeeID = %d', absint( $attendee_id ) ) );

$q_rs = $wpdb->get_results(
'SELECT q.id, questionType FROM ' . QUESTIONS_TABLE . ' q
Expand Down
Binary file modified rsvp.zip
Binary file not shown.

0 comments on commit 2eaaf28

Please sign in to comment.