Code Duplication    Length = 6-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 2158-2163 (lines=6) @@
2155
        $join .= " LEFT JOIN " . GEODIR_ATTACHMENT_TABLE . " ON ( " . GEODIR_ATTACHMENT_TABLE . ".post_id=" . $table . ".post_id AND " . GEODIR_ATTACHMENT_TABLE . ".mime_type LIKE '%image%' )";
2156
    }
2157
2158
    if (!empty($query_args['tax_query'])) {
2159
        $tax_queries = get_tax_sql($query_args['tax_query'], $wpdb->posts, 'ID');
2160
        if (!empty($tax_queries['join']) && !empty($tax_queries['where'])) {
2161
            $join .= $tax_queries['join'];
2162
        }
2163
    }
2164
2165
    return $join;
2166
}
@@ 2218-2224 (lines=7) @@
2215
            $where .= " AND ( " . $table . ".geodir_video != '' AND " . $table . ".geodir_video IS NOT NULL )";
2216
        }
2217
2218
        if (!empty($query_args['tax_query'])) {
2219
            $tax_queries = get_tax_sql($query_args['tax_query'], $wpdb->posts, 'ID');
2220
2221
            if (!empty($tax_queries['join']) && !empty($tax_queries['where'])) {
2222
                $where .= $tax_queries['where'];
2223
            }
2224
        }
2225
    }
2226
2227
    return $where;