// Fix PHP warning
This commit is contained in:
@@ -3775,11 +3775,16 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// gets the minimum
|
// gets the minimum
|
||||||
$pack_quantity = $pack_quantities[0];
|
if (!count($pack_quantities))
|
||||||
foreach ($pack_quantities as $value)
|
$pack_quantity = 0;
|
||||||
{
|
else
|
||||||
if ($pack_quantity > $value)
|
{
|
||||||
$pack_quantity = $value;
|
$pack_quantity = $pack_quantities[0];
|
||||||
|
foreach ($pack_quantities as $value)
|
||||||
|
{
|
||||||
|
if ($pack_quantity > $value)
|
||||||
|
$pack_quantity = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Warehouse::getPackWarehouses((int)$obj->id))
|
if (!Warehouse::getPackWarehouses((int)$obj->id))
|
||||||
|
|||||||
Reference in New Issue
Block a user