Project

General

Profile

Actions

Bug #36777

closed

Unnecessary warning in css_styled_content (division by zero)

Added by Thomas Layh over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
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

Also available in: Atom PDF