* change for safe.

This commit is contained in:
wangyidong
2018-07-23 17:27:54 +08:00
parent 897ad0fdae
commit 9e2df3dde2
7 changed files with 20 additions and 10 deletions
+1
View File
@@ -433,6 +433,7 @@ class productModel extends model
$oldProducts = $this->getByIdList($this->post->productIDList);
foreach($data->productIDList as $productID)
{
$productID = (int)$productID;
$products[$productID] = new stdClass();
$products[$productID]->name = $data->names[$productID];
$products[$productID]->code = $data->codes[$productID];