From 98de9801c2d3d6ff905263dc0ccbfd301469e0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 17 May 2021 17:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/function.php b/function.php index b54f1bc4..260832d5 100644 --- a/function.php +++ b/function.php @@ -678,12 +678,10 @@ if (!function_exists('sweep')) { { $array = []; foreach (glob($configPath . '/*') as $config) { + $_array = require_once "$config"; + if (!is_array($_array)) continue; - var_dump($config); - - var_dump(require_once "$config"); - - $array = array_merge(require_once "$config", $array); + $array = array_merge($_array, $array); } return $array; }