Code Duplication    Length = 6-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 2454-2459 (lines=6) @@
2451
		$join .= " LEFT JOIN " . GEODIR_ATTACHMENT_TABLE . " ON ( " . GEODIR_ATTACHMENT_TABLE . ".post_id=" . $table . ".post_id AND " . GEODIR_ATTACHMENT_TABLE . ".mime_type LIKE '%image%' )";
2452
	}
2453
2454
	if ( ! empty( $query_args['tax_query'] ) ) {
2455
		$tax_queries = get_tax_sql( $query_args['tax_query'], $wpdb->posts, 'ID' );
2456
		if ( ! empty( $tax_queries['join'] ) && ! empty( $tax_queries['where'] ) ) {
2457
			$join .= $tax_queries['join'];
2458
		}
2459
	}
2460
2461
	return $join;
2462
}
@@ 2515-2521 (lines=7) @@
2512
			$where .= " AND ( " . $table . ".geodir_video != '' AND " . $table . ".geodir_video IS NOT NULL )";
2513
		}
2514
2515
		if ( ! empty( $query_args['tax_query'] ) ) {
2516
			$tax_queries = get_tax_sql( $query_args['tax_query'], $wpdb->posts, 'ID' );
2517
2518
			if ( ! empty( $tax_queries['join'] ) && ! empty( $tax_queries['where'] ) ) {
2519
				$where .= $tax_queries['where'];
2520
			}
2521
		}
2522
	}
2523
2524
	return $where;