Skip to:
Content

BuddyPress.org

Ticket #5563: 5563.05.patch

File 5563.05.patch, 820 bytes (added by r-a-y, 11 years ago)
  • bp-core/bp-core-update.php

     
    464464                return true;
    465465        }
    466466
     467        // Never use bp_core_get_table_prefix() for any global users tables
     468        $wpdb->signups = $wpdb->base_prefix . 'signups';
     469
    467470        // Suppress errors because users shouldn't see this
    468471        $old_suppress = $wpdb->suppress_errors();
    469472
    470473        // Never use bp_core_get_table_prefix() for any global users tables
    471474        // We also don't use $wpdb->signups because we want decisive evidence.
    472         $table_exists = $wpdb->get_results( "DESCRIBE {$wpdb->base_prefix}signups;" );
     475        $table_exists = $wpdb->get_results( "DESCRIBE {$wpdb->signups};" );
    473476
    474477        // Restore previous error suppression setting
    475478        $wpdb->suppress_errors( $old_suppress );