Clean code

This commit is contained in:
Laurent Destailleur 2018-12-16 19:30:54 +01:00
parent 003c463ee4
commit efb88292dd

View File

@ -130,7 +130,7 @@ if ($action == 'addlimitstockwarehouse' && !empty($user->rights->produit->creer)
if($maj_ok) { if($maj_ok) {
$pse = new ProductStockEntrepot($db); $pse = new ProductStockEntrepot($db);
if($pse->fetch('', $id, GETPOST('fk_entrepot')) > 0) { if($pse->fetch(0, $id, GETPOST('fk_entrepot')) > 0) {
// Update // Update
$pse->seuil_stock_alerte = $seuil_stock_alerte; $pse->seuil_stock_alerte = $seuil_stock_alerte;
@ -159,7 +159,7 @@ if($action == 'delete_productstockwarehouse' && !empty($user->rights->produit->c
{ {
$pse = new ProductStockEntrepot($db); $pse = new ProductStockEntrepot($db);
$pse->fetch(GETPOST('fk_productstockwarehouse')); $pse->fetch(GETPOST('fk_productstockwarehouse','int'));
if($pse->delete($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseDeleted')); if($pse->delete($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseDeleted'));
$action = ''; $action = '';