diff --git a/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php b/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php index e7de359a7..aab428cf3 100755 --- a/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php +++ b/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php @@ -80,7 +80,6 @@ if ($result !== false) { $stmt->bindParam(':sessionid', $row['sessionid']); $stmt->execute(); if (method_exists($authenticator,'startAccounting')) { - $time_spend = time() - $row['created']; $authenticator->stopAccounting($row['username'], $row['sessionid'], $time_spend); }