@@ 133-137 (lines=5) @@ | ||
130 | } else { |
|
131 | $chosen = []; |
|
132 | ||
133 | foreach ($_POST['chosen'] as $id) { |
|
134 | if (is_numeric($id) && !in_array($id, $chosen)) { |
|
135 | $chosen[] = $id; |
|
136 | } |
|
137 | } |
|
138 | ||
139 | $ids = array_map(function($k) { |
|
140 | return ':products_id_' . $k; |
|
@@ 253-257 (lines=5) @@ | ||
250 | } else { |
|
251 | $chosen = []; |
|
252 | ||
253 | foreach ($_POST['chosen'] as $id) { |
|
254 | if (is_numeric($id) && !in_array($id, $chosen)) { |
|
255 | $chosen[] = $id; |
|
256 | } |
|
257 | } |
|
258 | ||
259 | $ids = array_map(function($k) { |
|
260 | return ':products_id_' . $k; |