Code Duplication    Length = 6-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 2446-2451 (lines=6) @@
2443
		$join .= " LEFT JOIN " . GEODIR_ATTACHMENT_TABLE . " ON ( " . GEODIR_ATTACHMENT_TABLE . ".post_id=" . $table . ".post_id AND " . GEODIR_ATTACHMENT_TABLE . ".mime_type LIKE '%image%' )";
2444
	}
2445
2446
	if ( ! empty( $query_args['tax_query'] ) ) {
2447
		$tax_queries = get_tax_sql( $query_args['tax_query'], $wpdb->posts, 'ID' );
2448
		if ( ! empty( $tax_queries['join'] ) && ! empty( $tax_queries['where'] ) ) {
2449
			$join .= $tax_queries['join'];
2450
		}
2451
	}
2452
2453
	return $join;
2454
}
@@ 2507-2513 (lines=7) @@
2504
			$where .= " AND ( " . $table . ".geodir_video != '' AND " . $table . ".geodir_video IS NOT NULL )";
2505
		}
2506
2507
		if ( ! empty( $query_args['tax_query'] ) ) {
2508
			$tax_queries = get_tax_sql( $query_args['tax_query'], $wpdb->posts, 'ID' );
2509
2510
			if ( ! empty( $tax_queries['join'] ) && ! empty( $tax_queries['where'] ) ) {
2511
				$where .= $tax_queries['where'];
2512
			}
2513
		}
2514
	}
2515
2516
	return $where;