[BUGFIX] Use early return in cObj::getImgResource 23/38223/2
authorOliver Hader <oliver@typo3.org>
Wed, 25 Mar 2015 13:43:36 +0000 (14:43 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 25 Mar 2015 23:32:06 +0000 (00:32 +0100)
commita3358657e62106863c01cd8acb10c551ea50559c
tree4a93dbf728ba09a94795eb6bcfef424ce13280cc
parent1f98368e6495e78c4c5dfefeb4ac343bdfa83458
[BUGFIX] Use early return in cObj::getImgResource

If ContentObjectRenderer::getImgResource is called without any
data, there is no need to execute all possibilities and lookup
files with an empty identifier.
For instance TextMenuContentObject::getBeforeAfter triggers
this at lot.

Resolves: #66028
Releases: master, 6.2
Change-Id: Iee7a3ce0f2956cd6ddae8c2e3d194f3cf2855c49
Reviewed-on: http://review.typo3.org/38223
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php