From db388f5d74bf640b5d3805f97b1b53eb6e3141ad Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 28 Mar 2022 09:42:50 +0800 Subject: [PATCH] * Fix bug #17359. --- module/custom/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/custom/model.php b/module/custom/model.php index 8b4eeb4f8d..273a093ff9 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -250,7 +250,7 @@ class customModel extends model { foreach($item['subMenu'] as $subMenu) { - if(!isset($subMenu['link'])) continue; + if(!isset($subMenu['link']) or strpos($subMenu['link'], '|') === false) continue; list($subLabel, $module, $method) = explode('|', $subMenu['link']); $hasPriv = commonModel::hasPriv($module, $method); if($hasPriv) break;