Index: branches/5.2.x/units/products/products_event_handler.php =================================================================== diff -u -N -r16516 -r16693 --- branches/5.2.x/units/products/products_event_handler.php (.../products_event_handler.php) (revision 16516) +++ branches/5.2.x/units/products/products_event_handler.php (.../products_event_handler.php) (revision 16693) @@ -1,6 +1,6 @@ GetDBField('InventoryStatus') == 2) { // inventory by options (use first selected combination in grid) $combinations = $this->Application->GetVar('poc_grid'); - list ($combination_id, ) = each($combinations); + $combination_id = key($combinations); } else { // inventory by product