mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2964 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ foreach (dbFetchRows("SELECT * FROM `bills`") as $bill_data)
|
||||
|
||||
# replace old bill_gb with bill_quota (we're now storing bytes, not gigabytes)
|
||||
|
||||
if($bill_data['bill_type'] == "quota" && !is_numeric($bill_data['bill_quota']))
|
||||
if ($bill_data['bill_type'] == "quota" && !is_numeric($bill_data['bill_quota']))
|
||||
{
|
||||
$bill_data['bill_quota'] = $bill_data['bill_gb'] * $config['billing']['base'] * $config['billing']['base'];
|
||||
dbUpdate(array('bill_quota' => $bill_data['bill_quota']), 'bills', '`bill_id` = ?', array($bill_data['bill_id']));
|
||||
|
||||
Reference in New Issue
Block a user