| @@ 58-62 (lines=5) @@ | ||
| 55 | } |
|
| 56 | ||
| 57 | // Should we view the books even when not in stock? |
|
| 58 | if (bookshop_getmoduleoption('nostock_display') == 0 && $book->getVar('book_stock') == 0) { |
|
| 59 | if (xoops_trim(bookshop_getmoduleoption('nostock_display')) != '') { |
|
| 60 | bookshop_redirect(bookshop_getmoduleoption('nostock_display'), 'index.php', 5); |
|
| 61 | } |
|
| 62 | } |
|
| 63 | // End of the tests, if it is still there is that everything is good ******************************** ****** |
|
| 64 | $title = strip_tags($book->getVar('book_title')) . ' - ' . bookshop_get_module_name(); |
|
| 65 | ||
| @@ 63-67 (lines=5) @@ | ||
| 60 | } |
|
| 61 | ||
| 62 | // Should we view the books even when not in stock? |
|
| 63 | if (bookshop_getmoduleoption('nostock_display') == 0 && $book->getVar('book_stock') == 0) { |
|
| 64 | if (xoops_trim(bookshop_getmoduleoption('nostock_display')) != '') { |
|
| 65 | bookshop_redirect(bookshop_getmoduleoption('nostock_display'), 'index.php', 5); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| 69 | // End of the tests, if it is still there is that everything is good ************************************** |
|
| 70 | if (!empty($_POST['btnsubmit'])) { // The form was submited |
|