summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/pkg.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index bc57e55..7a48c20 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -77,16 +77,15 @@ if ($_GET['act'] == "del") {
$a_pkg = &$config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'];
if ($a_pkg[$_GET['id']]) {
- if($pkg['custom_delete_php_command'] <> "") {
- if($pkg['custom_php_command_before_form'] <> "")
- eval($pkg['custom_php_command_before_form']);
- eval($pkg['custom_delete_php_command']);
- }
-
- unset($a_pkg[$_GET['id']]);
- write_config();
- header("Location: pkg.php?xml=" . $xml);
- exit;
+ unset($a_pkg[$_GET['id']]);
+ write_config();
+ if($pkg['custom_delete_php_command'] <> "") {
+ if($pkg['custom_php_command_before_form'] <> "")
+ eval($pkg['custom_php_command_before_form']);
+ eval($pkg['custom_delete_php_command']);
+ }
+ header("Location: pkg.php?xml=" . $xml);
+ exit;
}
}
OpenPOWER on IntegriCloud