Skip to content

Commit

Permalink
fix(Updateproduct.php): fix "undefined productId variable" issue if p…
Browse files Browse the repository at this point in the history
…roduct not found
  • Loading branch information
lycenok committed Oct 30, 2017
1 parent 3015577 commit b4688ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/local/Lycenok/Datafeed/Model/Updateproduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ protected function processValues($values) {
if (count($values) > 0 && count($values) < 2) {
throw new Exception('Too few values (<2)');
};
$productId = null;
$sku = $values[0];
$newAvailabilityId =
(isset($values[1]) ? getAvailabilityId($values[1]) : null);
Expand Down

0 comments on commit b4688ca

Please sign in to comment.