mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-27 06:54:16 +01:00
Refactor.
- getClientData() returns array or bool false on failure.
This commit is contained in:
parent
635981f3d3
commit
c94f0d03a1
@ -209,8 +209,7 @@ if (! $sync->isConnected())
|
||||
sendResp(S_BACKEND_ERROR, $myLog);
|
||||
}
|
||||
|
||||
$cd = $sync->getClientData($client);
|
||||
if (!$cd)
|
||||
if (($cd = $sync->getClientData($client)) === FALSE)
|
||||
{
|
||||
$myLog->log(LOG_NOTICE, 'Invalid client id ' . $client);
|
||||
sendResp(S_NO_SUCH_CLIENT, $myLog);
|
||||
|
Loading…
x
Reference in New Issue
Block a user