From dbce756267881a484f99cbd6a85fd0bd9ee3ee29 Mon Sep 17 00:00:00 2001 From: shady Date: Mon, 17 Mar 2014 11:10:26 +0100 Subject: [PATCH] fix missing refactor --- Controller/JsonRpcController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/JsonRpcController.php b/Controller/JsonRpcController.php index 56adc42..3f50679 100755 --- a/Controller/JsonRpcController.php +++ b/Controller/JsonRpcController.php @@ -76,11 +76,11 @@ public function execute(Request $httprequest) if ($request === null) { return $this->getErrorResponse(self::PARSE_ERROR, null); } elseif (!(isset($request['jsonrpc']) && isset($request['method']) && $request['jsonrpc'] == '2.0')) { - return $this->getErrorResponse(self::INVALID_REQUEST, $request->id); + return $this->getErrorResponse(self::INVALID_REQUEST, $request['id']); } if (!in_array($request['method'], array_keys($this->config['functions']))) { - return $this->getErrorResponse(self::METHOD_NOT_FOUND, $request->id); + return $this->getErrorResponse(self::METHOD_NOT_FOUND, $request['id']); } $service = $this->container->get($this->config['functions'][$request['method']]['service']);