Workaround for bill quota/cdr bigint (#9053)

Real fix is to install mysqlnd

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
Tony Murray 2018-08-21 16:15:25 -05:00 committed by Neil Lathwood
parent 73b8dae345
commit 2720ca5f1f

View File

@ -76,12 +76,13 @@ if ($_POST['action'] == 'update_bill') {
}
}//end if
// NOTE: casting to string for mysqli bug (fixed by mysqlnd)
if (dbUpdate(
array(
'bill_name' => $_POST['bill_name'],
'bill_day' => $_POST['bill_day'],
'bill_quota' => $bill_quota,
'bill_cdr' => $bill_cdr,
'bill_quota' => (string)$bill_quota,
'bill_cdr' => (string)$bill_cdr,
'bill_type' => $_POST['bill_type'],
'bill_custid' => $_POST['bill_custid'],
'bill_ref' => $_POST['bill_ref'],