* Optimize code after code reviewing.

This commit is contained in:
liumengyi
2024-05-23 14:22:14 +08:00
committed by caoyanyi
parent cede615304
commit 814a0feb01
+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;