mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Merge pull request #32606 from fappels/21_fix_php_warning
Fix php warning
This commit is contained in:
@@ -827,8 +827,11 @@ class Reception extends CommonObject
|
||||
if ((!getDolGlobalInt('STOCK_SUPPORTS_SERVICES') && $origin_line->product_type > 0) || $origin_line->product_type > 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$qty_wished[$origin_line->fk_product] += $origin_line->qty;
|
||||
if (array_key_exists($origin_line->fk_product, $qty_wished)) {
|
||||
$qty_wished[$origin_line->fk_product] += $origin_line->qty;
|
||||
} else {
|
||||
$qty_wished[$origin_line->fk_product] = $origin_line->qty;
|
||||
}
|
||||
}
|
||||
|
||||
// compare array
|
||||
|
||||
Reference in New Issue
Block a user