Skip to content

Commit

Permalink
Merge pull request #439 from nanasess/fix-address
Browse files Browse the repository at this point in the history
不適切な strlen の使用を修正
  • Loading branch information
okazy committed Feb 25, 2021
2 parents 576a0d2 + 57decfc commit 58841f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/class/helper/SC_Helper_Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function registAddress($sqlval)
$other_deliv_id = $sqlval['other_deliv_id'];

// 追加
if (strlen($other_deliv_id == 0)) {
if (intval($other_deliv_id) === 0) {
// 別のお届け先最大登録数に達している場合、エラー
$from = 'dtb_other_deliv';
$where = 'customer_id = ?';
Expand Down

0 comments on commit 58841f5

Please sign in to comment.