[CLEANUP] Replace count with empty in multiple extensions
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / Classes / Hook / TypoScriptTemplateInfoHook.php
index 521d247..5f1b701 100644 (file)
@@ -124,7 +124,7 @@ class TypoScriptTemplateInfoHook {
                                                        }
                                                }
                                        }
-                                       if (count($recData)) {
+                                       if (!empty($recData)) {
                                                // process template row before saving
                                                $tstemplateinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::class);
                                                /* @var $tstemplateinfo \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController */