diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index 7ff722d49..1443d7530 100755 --- a/application/service/PluginsAdminService.php +++ b/application/service/PluginsAdminService.php @@ -45,7 +45,7 @@ public static function PluginsList($params = []) { while(($temp_file = readdir($dh)) !== false) { - if(!in_array($temp_file, ['.', '..', '/', 'view', 'index.html']) && substr($temp_file, 0, 1) != '.') + if(!in_array($temp_file, ['.', '..', '/', 'view', 'index.html']) && $temp_file[0] != '.') { // 获取插件配置信息 $config = self::GetPluginsConfig($temp_file); @@ -1242,4 +1242,4 @@ public static function PluginsDownload($params = []) } } } -?> \ No newline at end of file +?>