summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/statistics/api.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php
index d75f4af8..7b5678de 100644
--- a/modules-available/statistics/api.inc.php
+++ b/modules-available/statistics/api.inc.php
@@ -211,7 +211,7 @@ if ($type{0} === '~') {
$params['user'] = Request::post('user', null, 'string');
$res = Database::exec('UPDATE machine SET lastseen = UNIX_TIMESTAMP(),'
. $strUpdateBoottime
- . " logintime = UNIX_TIMESTAMP(), currentuser = :user, state = 'OCCUPIED' "
+ . " logintime = UNIX_TIMESTAMP(), currentuser = :user, currentsession = NULL, state = 'OCCUPIED' "
. " WHERE machineuuid = :uuid AND lastseen = :oldlastseen AND state = :oldstate", $params);
} else {
$res = 0;