From c94f0d03a1d51a97bdc3398f83b54604b659e577 Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Sat, 18 Jul 2015 00:19:04 +0200 Subject: [PATCH] Refactor. - getClientData() returns array or bool false on failure. --- ykval-verify.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ykval-verify.php b/ykval-verify.php index e725fa2..f8341aa 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -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);