diff options
-rwxr-xr-x | include/plugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php index 2084f9107..4545e1e8d 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -20,7 +20,10 @@ function handleerrors_plugin($plugin,$notice,$log,$uninstall=false){ } if ($uninstall) { - plugin_uninstall($plugin); + $idx = array_search($plugin, \App::$plugins); + unset(\App::$plugins[$idx]); + uninstall_plugin($plugin); + set_config("system","addon", implode(", ",\App::$plugins)); } } |