[CLEANUP] Replace count with empty in multiple extensions
[Packages/TYPO3.CMS.git] / typo3 / sysext / tstemplate / Classes / Controller / TypoScriptTemplateConstantEditorModuleFunctionController.php
index ba2890e..50be5fa 100644 (file)
@@ -157,7 +157,7 @@ class TypoScriptTemplateConstantEditorModuleFunctionController extends AbstractF
                                $theOutput .= $this->pObj->doc->section('', $manyTemplatesMenu);
                        }
                        $theOutput .= $this->pObj->doc->spacer(10);
-                       if (count($this->pObj->MOD_MENU['constant_editor_cat'])) {
+                       if (!empty($this->pObj->MOD_MENU['constant_editor_cat'])) {
                                $menu = BackendUtility::getFuncMenu($this->pObj->id, 'SET[constant_editor_cat]', $this->pObj->MOD_SETTINGS['constant_editor_cat'], $this->pObj->MOD_MENU['constant_editor_cat']);
                                $theOutput .= $this->pObj->doc->section($lang->getLL('category', TRUE), '<span class="text-nowrap">' . $menu . '</span>', FALSE);
                        } else {