From e43404e935d43a52d24115dcbf8724c128647b82 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Tue, 2 Dec 2008 06:21:32 +0000 Subject: [PATCH] bugfix add key --- addKey.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addKey.php b/addKey.php index 0750e96..1fadb39 100644 --- a/addKey.php +++ b/addKey.php @@ -17,6 +17,7 @@ if ($client <= 0) { reply(S_MISSING_PARAMETER, '', $client, $nonce, 'client'); exit; } +$ci = getClientInfo($client); $h = getHttpVal('h', ''); if ($h == '') { @@ -25,6 +26,7 @@ if ($h == '') { } $op = getHttpVal('operation', ''); + if ($op == '') { reply(S_MISSING_PARAMETER, '', $client, $nonce, 'operation'); exit; @@ -33,8 +35,6 @@ if ($op == '') { exit; } -$ci = getClientInfo($client); - if (! isset($ci['id'])) { debug('Client '.$client.' not found!'); $client = 1;