We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c05974 commit 99f9a28Copy full SHA for 99f9a28
app/lib/BtPlugins.php
@@ -36,9 +36,11 @@ public function get_plugin_list(){
36
if(empty($result['list']) || empty($result['type'])){
37
throw new Exception('获取插件列表失败:插件列表为空');
38
}
39
- foreach($result['list'] as $k=>$v){
40
- if(in_array($v['name'], self::$block_plugins)) unset($result['list'][$k]);
+ $newlist = [];
+ foreach($result['list'] as $item){
41
+ if(!in_array($item['name'], self::$block_plugins)) $newlist[] = $item;
42
43
+ $result['list'] = $newlist;
44
return $result;
45
}else{
46
throw new Exception('获取插件列表失败:'.(isset($result['msg'])?$result['msg']:'面板连接失败'));
0 commit comments