prefix; $dbupdates = $WP_Statistics->get_option( 'pending_db_updates' ); // Check the number of index's on the visitors table, if it's only 5 we need to check for duplicate entries and remove them $result = $wpdb->query( "SHOW INDEX FROM {$wp_prefix}statistics_visitor WHERE Key_name = 'date_ip_agent'" ); // Note, the result will be the number of fields contained in the index, so in our case 5. if ( $result != 5 ) { $dbupdates['date_ip_agent'] = true; ?>

prefix; // Check the number of index's on the visits table, if it's only 5 we need to check for duplicate entries and remove them $result = $wpdb->query( "SHOW INDEX FROM {$wp_prefix}statistics_visit WHERE Key_name = 'unique_date'" ); // Note, the result will be the number of fields contained in the index, so in our case 1. if ( $result != 1 ) { $dbupdates['unique_date'] = true; ?>

update_option( 'pending_db_updates', $dbupdates ); ?>

get_option( 'search_converted' ) != 1 ) { ?>