- Timestamp:
- Jan 26, 2023 5:18:34 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r775 r780 344 344 $db->query(sprintf( 345 345 "UPDATE %s SET 346 seconds_online = seconds_online + ABS(UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_access_datetime)),346 seconds_online = seconds_online + IFNULL(ABS(UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_access_datetime)), 0), 347 347 last_login_datetime = '%s 00:00:00' 348 348 WHERE %s = '%s' … … 700 700 $db->query(" 701 701 UPDATE " . $this->_params['db_table'] . " SET 702 seconds_online = seconds_online + ABS(UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_access_datetime)) + 1,702 seconds_online = seconds_online + IFNULL(ABS(UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_access_datetime)), 0) + 1, 703 703 last_access_datetime = '" . $this->get('last_access_datetime') . "' 704 704 WHERE " . $this->_params['db_primary_key'] . " = '" . $this->get('user_id') . "'
Note: See TracChangeset
for help on using the changeset viewer.