Review TYPO3_4-5 Merged

12865[BUGFIX] Unnecessary warning in css_styled_content (division by zero)

Ernesto Baschny CR +2 V +2 Easy +1 −1 updated 06/03/13, 20:49

Commit message

If tt_content.image.20.maxW is not set, PHP throws a warning about
division by zero. This is not necessary. After that the variable
$scale is not set. This patch checks if $netW is greater zero and
otherwise the else condition will set $scale to 1.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Files 1