Code Duplication    Length = 2-2 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 336-337 (lines=2) @@
333
                return true;
334
            break;
335
        case 'checkout':
336
            if (is_page() && function_exists('geodir_payment_checkout_page_id') && get_query_var('page_id') == geodir_payment_checkout_page_id())
337
                return true;
338
            break;
339
        case 'invoices':
340
            if (is_page() && function_exists('geodir_payment_invoices_page_id') && get_query_var('page_id') == geodir_payment_invoices_page_id())
@@ 340-341 (lines=2) @@
337
                return true;
338
            break;
339
        case 'invoices':
340
            if (is_page() && function_exists('geodir_payment_invoices_page_id') && get_query_var('page_id') == geodir_payment_invoices_page_id())
341
                return true;
342
            break;
343
        default:
344
            return false;