Skip to content

Commit

Permalink
修复插件卸载勾选删除插件数据表问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ailaohuniu committed Jan 18, 2022
1 parent 6fb721f commit 10d9e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/controller/Addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function uninstall()
}
//只有开启调试且为超级管理员才允许删除相关数据库
$tables = [];
if ($droptables && Config::get("app_debug") && $this->auth->isSuperAdmin()) {
if ($droptables && env("app_debug") && $this->auth->isSuperAdmin()) {
$tables = get_addon_tables($name);
}
try {
Expand Down

0 comments on commit 10d9e7c

Please sign in to comment.