Skip to content

Commit

Permalink
規格1の存在チェックが正しく行われるよう修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pineray committed Mar 16, 2022
1 parent 4b76107 commit c3094a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/class/SC_Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function setProductsClassByProductIds($arrProductId, $has_deleted = false
$this->stock_find[$productId] = true;
}

if (!in_array($classcategory_id1, $classCats1)) {
if (!in_array($classcategory_id1, array_keys($classCats1))) {
$classCats1[$classcategory_id1] = $arrProductsClass['classcategory_name1']
. ($classcategory_id2 == 0 && !$stock_find_class ? ' (品切れ中)' : '');
}
Expand Down

0 comments on commit c3094a1

Please sign in to comment.