diff --git a/system/controllers/customers.php b/system/controllers/customers.php
index 8f412fed..21ea411f 100644
--- a/system/controllers/customers.php
+++ b/system/controllers/customers.php
@@ -79,6 +79,7 @@ switch ($action) {
try {
$d->delete();
} catch (Exception $e) {
+ } catch(Throwable $e){
}
try {
$c->delete();
@@ -88,10 +89,12 @@ switch ($action) {
try {
$d->delete();
} catch (Exception $e) {
+ } catch(Throwable $e){
}
try {
$c->delete();
} catch (Exception $e) {
+ } catch(Throwable $e){
}
}
diff --git a/ui/ui/bandwidth.tpl b/ui/ui/bandwidth.tpl
index 166ab486..25ec3fe6 100644
--- a/ui/ui/bandwidth.tpl
+++ b/ui/ui/bandwidth.tpl
@@ -41,7 +41,7 @@
{$ds['rate_up']} {$ds['rate_up_unit']} |
{$_L['Edit']}
- {$_L['Delete']}
+ {$_L['Delete']}
|
{/foreach}
diff --git a/ui/ui/customers.tpl b/ui/ui/customers.tpl
index 7ede1915..c3d1ae07 100644
--- a/ui/ui/customers.tpl
+++ b/ui/ui/customers.tpl
@@ -45,7 +45,7 @@
{$_L['Recharge']} |
{$_L['Edit']}
- {$_L['Delete']}
+ {$_L['Delete']}
|
{/foreach}
diff --git a/ui/ui/users.tpl b/ui/ui/users.tpl
index 0be15f64..4f42fd32 100644
--- a/ui/ui/users.tpl
+++ b/ui/ui/users.tpl
@@ -49,7 +49,7 @@
class="btn btn-warning btn-sm">{$_L['Edit']}
{if ($_admin['username']) neq ($ds['username'])}
{$_L['Delete']}
+ class="btn btn-danger btn-sm" onclick="confirm('{$_L['Delete']}?')">{$_L['Delete']}
{/if}
diff --git a/ui/ui/voucher.tpl b/ui/ui/voucher.tpl
index c989fcc3..a8678450 100644
--- a/ui/ui/voucher.tpl
+++ b/ui/ui/voucher.tpl
@@ -61,7 +61,7 @@
{if $ds['user'] eq '0'} - {else} {$ds['user']} {/if} |
{$_L['Delete']}
+ class="btn btn-danger btn-sm" onclick="confirm('{$_L['Delete']}?')">{$_L['Delete']}
|
{/foreach}