Skip to content

Commit dee7cf6

Browse files
committed
Fix #182 webservice wrong call when user remove plugins
1 parent 3194c5f commit dee7cf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/main_sections/ms_plugins/functions_delete.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,17 @@ function delete_plugin($pluginid, $dyn_cal = true) {
8383

8484
rrmdir(MAIN_SECTIONS_DIR . "ms_" . $anwser['name']);
8585
}
86+
8687
if (file_exists(PLUGINS_DIR . "computer_detail/cd_" . $anwser['name'])) {
8788
rrmdir(PLUGINS_DIR . "computer_detail/cd_" . $anwser['name']);
8889
}
8990

9091
if (file_exists(PLUGINS_SRV_SIDE . $anwser['name'] . ".zip")) {
9192
unlink(PLUGINS_SRV_SIDE . $anwser['name'] . ".zip");
92-
exec_plugin_soap_client($anwser['name'], 0);
9393
}
9494

95+
exec_plugin_soap_client($anwser['name'], 0);
96+
9597
if (is_int($arg)) {
9698
$conn->query("DELETE FROM `" . DB_NAME . "`.`plugins` WHERE `plugins`.`id` = " . $arg . " ");
9799
} else {

0 commit comments

Comments
 (0)