function geodir_diagnose_ratings()
{
global $wpdb;
$fix = isset($_POST['fix']) ? true : false;
//if($fix){echo 'true';}else{echo 'false';}
$is_error_during_diagnose = false;
$output_str = '';
// check review locations
if ($wpdb->get_results("SELECT * FROM " . GEODIR_REVIEW_TABLE . " WHERE post_city='' OR post_city IS NULL OR post_latitude='' OR post_latitude IS NULL")) {
$output_str .= "
" . __('Review locations missing or broken', 'geodirectory') . "
";
$is_error_during_diagnose = true;
if ($fix) {
if (geodir_fix_review_location()) {
$output_str .= "