Skip to content

Commit

Permalink
FIX: join() replaced by implode()
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhere committed Dec 3, 2024
1 parent d9829d5 commit 35c7d76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/product/stock/stockatdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Copyright (C) 2016 ATM Consulting <support@atm-consulting.fr>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Jean-Rémi TAPONIER <jean-remi@netlogic.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -190,7 +191,7 @@
$sql .= " AND ps.fk_product = ".((int) $productid);
}
if (! empty($search_fk_warehouse)) {
$sql .= " AND ps.fk_entrepot IN (".$db->sanitize(join(",", $search_fk_warehouse)).")";
$sql .= " AND ps.fk_entrepot IN (".$db->sanitize(implode(",", $search_fk_warehouse)).")";
}
if ($search_ref) {
$sql .= natural_search("p.ref", $search_ref);
Expand Down Expand Up @@ -218,7 +219,7 @@
$sql .= " AND sm.fk_product = ".((int) $productid);
}
if (!empty($search_fk_warehouse)) {
$sql .= " AND sm.fk_entrepot IN (".$db->sanitize(join(",", $search_fk_warehouse)).")";
$sql .= " AND sm.fk_entrepot IN (".$db->sanitize(implode(",", $search_fk_warehouse)).")";
}
if ($search_ref) {
$sql .= natural_search("p.ref", $search_ref);
Expand Down

0 comments on commit 35c7d76

Please sign in to comment.