Actions
Bug #36777
closedUnnecessary warning in css_styled_content (division by zero)
Start date:
2012-05-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Files
Actions