1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-26 21:54:16 +01:00

Refactor.

- getClientData() returns array or bool false on failure.
This commit is contained in:
Jean Paul Galea 2015-07-18 00:19:04 +02:00
parent 635981f3d3
commit c94f0d03a1

View File

@ -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);