1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

Avoid variable aliases.

This commit is contained in:
Jean Paul Galea 2015-09-15 17:24:04 +00:00
parent 99e6d8586d
commit 8d6520964f

View File

@ -418,14 +418,13 @@ if ($syncres == False)
TODO: use timefunctionality in deltatime library instead */
$ad['high'] = $localParams['yk_high'];
$ad['low'] = $localParams['yk_low'];
$ad['accessed'] = date('Y-m-d H:i:s', $localParams['modified']);
// check the time stamp
if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use'])
{
$ts = ($otpinfo['high'] << 16) + $otpinfo['low'];
$seenTs = ($ad['high'] << 16) + $ad['low'];
$seenTs = ($ad['high'] << 16) + $localParams['yk_low'];
$tsDiff = $ts - $seenTs;
$tsDelta = $tsDiff * TS_SEC;