X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=gaas%2Flib%2FgaasdClient.php;fp=gaas%2Flib%2FgaasdClient.php;h=c8eb7bae11b54033547f20252f841f29b3822425;hp=3a990e892a7724a1fe5580bf842e7a5a8e7d7d1c;hb=17d7c1e759c50b2fe796306f5ca3f46e064cadaa;hpb=e90887f0fd673f152c95fb9965707d9f0aa07497 diff --git a/gaas/lib/gaasdClient.php b/gaas/lib/gaasdClient.php index 3a990e8..c8eb7ba 100644 --- a/gaas/lib/gaasdClient.php +++ b/gaas/lib/gaasdClient.php @@ -86,8 +86,11 @@ class GAASClient { $function_recv = $MESSAGES[$st_defined]."_clientrecv"; //echo "real function is $function_send, $function_recv\n"; - if(function_exists($function_send) && function_exists($function_recv)) { - return $function_recv($this->sendReceive($st_defined, $function_send($params))); + if(function_exists($function_send)) { + $fromsend = $this->sendReceive($st_defined, $function_send($params))); + if(function_exists($function_recv)) { + return $function_recv($fromsend); + } else return $fromsend; } else { error_log("Function, $function does not exist!"); }