* Optimize code after code reviewing.

This commit is contained in:
liumengyi
2024-05-23 09:23:26 +08:00
parent 50afd0df88
commit 15566e82a9
+1 -1
View File
@@ -128,7 +128,7 @@ class navbar extends wg
$activeMenu = '';
$activeMenuID = data('activeMenuID');
$items = array();
$flows = in_array($config->edition, array('biz', 'max', 'ipd')) ? $app->control->loadModel('my')->getFlowPairs() : array();
$flows = $config->edition != 'open' ? $app->control->loadModel('my')->getFlowPairs() : array();
foreach($menu as $menuItem)
{
if(isset($menuItem->hidden) and $menuItem->hidden and (!isset($menuItem->tutorial) or !$menuItem->tutorial)) continue;