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

Possible division by zero at Weight::convert() #623

Merged
merged 1 commit into from
Apr 16, 2013

Conversation

Hrumpa
Copy link
Contributor

@Hrumpa Hrumpa commented Apr 16, 2013

When Weight_Format_ID ($from) is not set for the goods item record, method results with division by zero. Possibly the right idea is to output unchanged $value if either $this->weights[$from] OR $this->weights[$to] is not set.

When Weight_Format_ID ($from) is not set for the goods item record, method results with division by zero. Possibly the right idea is to output unchanged $value if either $this->weights[$from] OR $this->weights[$to] is not set.
opencart pushed a commit that referenced this pull request Apr 16, 2013
Possible division by zero at Weight::convert()
@opencart opencart merged commit 521b748 into opencart:master Apr 16, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants