| @@ 130-134 (lines=5) @@ | ||
| 127 | } else { |
|
| 128 | $chosen = []; |
|
| 129 | ||
| 130 | foreach ($_POST['chosen'] as $id) { |
|
| 131 | if (is_numeric($id) && !in_array($id, $chosen)) { |
|
| 132 | $chosen[] = $id; |
|
| 133 | } |
|
| 134 | } |
|
| 135 | ||
| 136 | $ids = array_map(function($k) { |
|
| 137 | return ':products_id_' . $k; |
|
| @@ 274-278 (lines=5) @@ | ||
| 271 | } else { |
|
| 272 | $chosen = []; |
|
| 273 | ||
| 274 | foreach ($_POST['chosen'] as $id) { |
|
| 275 | if (is_numeric($id) && !in_array($id, $chosen)) { |
|
| 276 | $chosen[] = $id; |
|
| 277 | } |
|
| 278 | } |
|
| 279 | ||
| 280 | $ids = array_map(function($k) { |
|
| 281 | return ':products_id_' . $k; |
|