mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-12 15:54:27 +01:00
Avoid variable aliases.
This commit is contained in:
parent
28ec07af7f
commit
a577d0eb0c
@ -417,8 +417,6 @@ if ($syncres == False)
|
|||||||
/* Recreate parameters to make phising test work out
|
/* Recreate parameters to make phising test work out
|
||||||
TODO: use timefunctionality in deltatime library instead */
|
TODO: use timefunctionality in deltatime library instead */
|
||||||
|
|
||||||
$ad['accessed'] = date('Y-m-d H:i:s', $localParams['modified']);
|
|
||||||
|
|
||||||
// check the time stamp
|
// check the time stamp
|
||||||
if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use'])
|
if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use'])
|
||||||
{
|
{
|
||||||
@ -449,7 +447,7 @@ if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use
|
|||||||
'this' => $ts,
|
'this' => $ts,
|
||||||
'delta' => $tsDiff,
|
'delta' => $tsDiff,
|
||||||
'secs' => $tsDelta,
|
'secs' => $tsDelta,
|
||||||
'accessed' => sprintf('%s (%s)', $lastTime, $ad['accessed']),
|
'accessed' => sprintf('%s (%s)', $lastTime, date('Y-m-d H:i:s', $localParams['modified'])),
|
||||||
'now' => sprintf('%s (%s)', $now, date('Y-m-d H:i:s', $now)),
|
'now' => sprintf('%s (%s)', $now, date('Y-m-d H:i:s', $now)),
|
||||||
'elapsed' => $elapsed,
|
'elapsed' => $elapsed,
|
||||||
'deviation' => sprintf('%s secs or %s%%', $deviation, round(100 * $percent)),
|
'deviation' => sprintf('%s secs or %s%%', $deviation, round(100 * $percent)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user