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}";