Changeset 7150 for trunk/src/includes/admin/tools/upgrade.php
- Timestamp:
- 11/05/2020 05:57:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools/upgrade.php
r7006 r7150 427 427 428 428 // Skip if already exists 429 if ( $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(*) FROM {$bbp_db->postmeta} WHERE post_id = %d AND meta_key = %s AND meta_value = % d", $post_id, $new_key, $meta->user_id ) ) ) {429 if ( $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(*) FROM {$bbp_db->postmeta} WHERE post_id = %d AND meta_key = %s AND meta_value = %s", $post_id, $new_key, $meta->user_id ) ) ) { 430 430 continue; 431 431 } … … 487 487 488 488 // Skip if already exists 489 if ( $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(*) FROM {$bbp_db->postmeta} WHERE post_id = %d AND meta_key = %s AND meta_value = % d", $post_id, $new_key, $meta->user_id ) ) ) {489 if ( $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(*) FROM {$bbp_db->postmeta} WHERE post_id = %d AND meta_key = %s AND meta_value = %s", $post_id, $new_key, $meta->user_id ) ) ) { 490 490 continue; 491 491 } … … 547 547 548 548 // Skip if already exists 549 if ( $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(*) FROM {$bbp_db->postmeta} WHERE post_id = %d AND meta_key = %s AND meta_value = % d", $post_id, $new_key, $meta->user_id ) ) ) {549 if ( $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(*) FROM {$bbp_db->postmeta} WHERE post_id = %d AND meta_key = %s AND meta_value = %s", $post_id, $new_key, $meta->user_id ) ) ) { 550 550 continue; 551 551 }
Note: See TracChangeset
for help on using the changeset viewer.