summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-07-19 17:12:13 +0200
committerDavid <ottodavid@gmx.net>2014-08-22 12:41:57 +0200
commitcbb5f2793ceb96c072af1a662eba5e96bf38e180 (patch)
tree7314d0bde19e3d6f6b468da24e33075be576a339
parent75e52c69f5243d17bfe9274f3274f717a8cff8a4 (diff)
Fix 526
(cherry picked from commit 071f22c5c038c962823af003a28663d0d2734a16)
-rw-r--r--framework/Web/Services/TRpcService.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/Services/TRpcService.php b/framework/Web/Services/TRpcService.php
index a2691af4..546ab82a 100644
--- a/framework/Web/Services/TRpcService.php
+++ b/framework/Web/Services/TRpcService.php
@@ -480,7 +480,6 @@ class TJsonRpcProtocol extends TRpcProtocol
if(!is_array($parameters))
$parameters = array($parameters);
- $ret = $this->callApiMethod($_request['method'], $parameters);
// a request without an id is a notification that doesn't need a response
if($this->_id !== null)
{
@@ -489,7 +488,7 @@ class TJsonRpcProtocol extends TRpcProtocol
return $this->encode(array(
'jsonrpc' => '2.0',
'id' => $this->_id,
- 'result' => $ret
+ 'result' => $this->callApiMethod($_request['method'], $parameters);
));
} else {
return $this->encode(array(