Issue Bug Closed

#36777Unnecessary warning in css_styled_content (division by zero)

Thomas Layh 05/02/12, 16:06 updated 09/26/12, 22:41

Description

PHP throws an unnecessary warning for the image scaling if some circumstances come together.

If you set the configuration

tt_content.image.20.maxW >

you will get a divison by zero warning. This happens because $netW becomes zero and after that $scale will have no value at all.

See the attached patch for details. Will push this to gerrit soon.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.