mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
CaptivePortal, fix typo, when calling stopAccounting() check if stopAccounting() exists and not startAccounting() (although both are true ;) )
This commit is contained in:
parent
fb8b63f4c4
commit
f9acc51bb7
@ -81,7 +81,7 @@ if ($result !== false) {
|
||||
$stmt->bindParam(':zoneid', $row['zoneid']);
|
||||
$stmt->bindParam(':sessionid', $row['sessionid']);
|
||||
$stmt->execute();
|
||||
if (method_exists($authenticator, 'startAccounting')) {
|
||||
if (method_exists($authenticator, 'stopAccounting')) {
|
||||
$time_spend = time() - $row['created'];
|
||||
$authenticator->stopAccounting($row['username'], $row['sessionid'], $time_spend, $row['bytes_in'], $row['bytes_out'], $row['ip_address']);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user