Fix #1758 count() error in PHP 8.0

This commit is contained in:
Kijin Sung 2021-08-02 10:30:50 +09:00
parent 9127e17b2e
commit f5b03916d8

View file

@ -1312,7 +1312,7 @@ class menuAdminController extends menu
// if have a child menu, copy child menu also
$childMenu = array_shift($originMenu['list']);
if(count($childMenu) > 0)
if($childMenu)
{
$this->_copyMenu($menuSrl, $insertedMenuItemSrl, $childMenu);
}