Skip to content
Snippets Groups Projects
Commit 59979da2 authored by Uma's avatar Uma
Browse files

Merge branch 'fix_php72_warning_on_sidebarappmenu' into 'master'

#1296 change count ... gt 0 to !empty in SidebarAppMenu.tpl

More compatible with PHP 7.2+. Reduce warnings like "count(): Parameter must be an array or an object that implements Countable in..." in log

See merge request !633
parents 4c164299 ecda7477
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
{assign var=APP_LIST value=Vtiger_MenuStructure_Model::getAppMenuList()}
{foreach item=APP_NAME from=$APP_LIST}
{if $APP_NAME eq 'ANALYTICS'} {continue}{/if}
{if count($APP_GROUPED_MENU.$APP_NAME) gt 0}
{if !empty($APP_GROUPED_MENU.$APP_NAME)}
<div class="dropdown app-modules-dropdown-container">
{foreach item=APP_MENU_MODEL from=$APP_GROUPED_MENU.$APP_NAME}
{assign var=FIRST_MENU_MODEL value=$APP_MENU_MODEL}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment