@@ 158-162 (lines=5) @@ | ||
155 | $breadcrumb = array(OLEDRION_URL . 'all-lists.php' => _MI_OLEDRION_SMNAME11, OLEDRION_URL . basename(__FILE__) => _MI_OLEDRION_SMNAME10, OLEDRION_URL => _OLEDRION_ADD_PRODUCT_LIST); |
|
156 | $product = null; |
|
157 | $product = $handlers->h_oledrion_products->get($product_id); |
|
158 | if (is_object($product) && $product->isProductVisible()) { |
|
159 | $xoopsTpl->assign('product', $product->toArray()); |
|
160 | } else { |
|
161 | oledrion_utils::redirect(_OLEDRION_ERROR1, $baseurl, 4); |
|
162 | } |
|
163 | } else { |
|
164 | $sform = listForm('addList', $product_id); |
|
165 | $title = _OLEDRION_ADD_LIST; |
|
@@ 181-185 (lines=5) @@ | ||
178 | } |
|
179 | $product = null; |
|
180 | $product = $handlers->h_oledrion_products->get($product_id); |
|
181 | if (is_object($product) && $product->isProductVisible()) { |
|
182 | $xoopsTpl->assign('product', $product->toArray()); |
|
183 | } else { |
|
184 | oledrion_utils::redirect(_OLEDRION_ERROR1, $baseurl, 4); |
|
185 | } |
|
186 | ||
187 | $list_id = isset($_POST['list_id']) ? intval($_POST['list_id']) : 0; |
|
188 | if ($list_id == 0) { // Ajouter à une nouvelle liste |