mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Incorrect reference to non-existent table 'bill_hist'. Corrected to 'bill_history' (#9634)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
if ($_POST['action'] == 'delete_bill' && $_POST['confirm'] == 'confirm') {
|
||||
dbDelete('bill_hist', '`bill_id` = ?', array($bill_id));
|
||||
dbDelete('bill_history', '`bill_id` = ?', array($bill_id));
|
||||
dbDelete('bill_ports', '`bill_id` = ?', array($bill_id));
|
||||
dbDelete('bill_data', '`bill_id` = ?', array($bill_id));
|
||||
dbDelete('bill_perms', '`bill_id` = ?', array($bill_id));
|
||||
@@ -14,7 +14,7 @@ if ($_POST['action'] == 'delete_bill' && $_POST['confirm'] == 'confirm') {
|
||||
|
||||
if ($_POST['action'] == 'reset_bill' && ($_POST['confirm'] == 'rrd' || $_POST['confirm'] == 'mysql')) {
|
||||
if ($_POST['confirm'] == 'mysql') {
|
||||
dbDelete('bill_hist', '`bill_id` = ?', array($bill_id));
|
||||
dbDelete('bill_history', '`bill_id` = ?', array($bill_id));
|
||||
dbDelete('bill_data', '`bill_id` = ?', array($bill_id));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user