Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC_CartSession::delProductKey() 末尾の要素を扱えない #120

Closed
seasoftjapan opened this issue Feb 10, 2017 · 3 comments
Closed

SC_CartSession::delProductKey() 末尾の要素を扱えない #120

seasoftjapan opened this issue Feb 10, 2017 · 3 comments
Milestone

Comments

@seasoftjapan
Copy link
Contributor

こういうこと。for なんて使うから…

-for ($i = 0; $i < $max; $i++) {
+for ($i = 0; $i <= $max; $i++) {
@izayoi256
Copy link
Contributor

@seasoftjapan
確かにforeachを使っていないことに疑問は覚えますが、標準で末尾の要素が扱えないケースがありますか?
カートの配列のキーに0未満の数字や数字以外の文字列を使っているのでなければ、動作はすると思うのですが。

@izayoi256
Copy link
Contributor

izayoi256 commented Feb 10, 2017

@seasoftjapan あ、いや発生しますね。私の勘違いでした。朝一で見て寝ぼけてたみたいです…。

@nobuhiko
Copy link
Contributor

#108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants