add 0 default
This commit is contained in:
parent
c26f08e5c9
commit
d39af7d404
@ -172,8 +172,8 @@ try {
|
|||||||
if (!$d) {
|
if (!$d) {
|
||||||
$d = ORM::for_table('rad_acct')->create();
|
$d = ORM::for_table('rad_acct')->create();
|
||||||
}
|
}
|
||||||
$acctOutputOctets = _post('acctOutputOctets');
|
$acctOutputOctets = _post('acctOutputOctets', 0);
|
||||||
$acctInputOctets = _post('acctInputOctets');
|
$acctInputOctets = _post('acctInputOctets', 0);
|
||||||
if ($acctOutputOctets !== false && $acctInputOctets !== false) {
|
if ($acctOutputOctets !== false && $acctInputOctets !== false) {
|
||||||
$d->acctOutputOctets += $acctOutputOctets;
|
$d->acctOutputOctets += $acctOutputOctets;
|
||||||
$d->acctInputOctets += $acctInputOctets;
|
$d->acctInputOctets += $acctInputOctets;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user