Code Duplication    Length = 3-3 lines in 2 locations

media.php 1 location

@@ 40-42 (lines=3) @@
37
    }
38
39
    // Le produit est publié ?
40
    if (OledrionUtility::getModuleOption('show_unpublished') == 0 && $product->getVar('product_submitted') > time()) {
41
        exit(_OLEDRION_ERROR3);
42
    }
43
} else {
44
    exit(_ERRORS);
45
}

product.php 1 location

@@ 47-49 (lines=3) @@
44
}
45
46
// Le produit est publié ?
47
if (OledrionUtility::getModuleOption('show_unpublished') == 0 && $product->getVar('product_submitted') > time()) {
48
    OledrionUtility::redirect(_OLEDRION_ERROR3, 'index.php', 5);
49
}
50
51
// Faut il afficher les produit même lorsqu'ils ne sont plus en stock ?
52
if (OledrionUtility::getModuleOption('nostock_display') == 0 && $product->getVar('product_stock') == 0) {