[TASK] Use !empty instead of count in TextContentObject 42/37842/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 14 Mar 2015 16:11:59 +0000 (17:11 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 14 Mar 2015 18:46:24 +0000 (19:46 +0100)
Resolves: #65733
Releases: master
Change-Id: I3f327981b95995be1199a20b186c554863bbc8fb
Reviewed-on: http://review.typo3.org/37842
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/ContentObject/TextContentObject.php

index b38377a..9cb3c38 100644 (file)
@@ -41,7 +41,7 @@ class TextContentObject extends AbstractContentObject {
                        $content = $this->cObj->stdWrap($content, $conf['value.']);
                        unset($conf['value.']);
                }
-               if (count($conf)) {
+               if (!empty($conf)) {
                        $content = $this->cObj->stdWrap($content, $conf);
                }
                return $content;