From 1285d68fa38a70951c08fdd7ff76ca65d25b7afe Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 10 Jul 2024 09:06:28 +0800 Subject: [PATCH] bug fix for bread --- themes/beauty/controller/ListController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/beauty/controller/ListController.php b/themes/beauty/controller/ListController.php index 05d6525..e56ecc5 100644 --- a/themes/beauty/controller/ListController.php +++ b/themes/beauty/controller/ListController.php @@ -176,6 +176,7 @@ Class ListController extends Controller { $cates = explode('/', $arr[1]); $parentCate = preg_replace("/\/$/", '', "{$arr[0]}{$webroot}"); //删除最后一个斜杠 foreach ($cates as $index => $cate) { + if (empty($cate)) {continue;} if ($cate == $currentDir['directory']) {break;} $subcate = "{$parentCate}/{$cate}";