Review TYPO3_6-2 Merged

31418[TASK] Optimize invocation of cObj::checkIf

Markus Klein CR +2 V +2 Hard +166 −152 updated 07/06/14, 21:24

Commit message

The stdWrap property "if" can be used to allow output only if a
defined criterion is met. However, the checkIf() method gets
called even if the property is not set in TypoScript.

Fix this by adding a quick empty() check to all calls.
Also optimizes the code structure to exit early in case the if
does not evaluate to TRUE.

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.

Issues 1

Files 7