diff --git a/jsonRPC2Server.php b/jsonRPC2Server.php index 98dd23c..f00fe00 100644 --- a/jsonRPC2Server.php +++ b/jsonRPC2Server.php @@ -225,7 +225,7 @@ private function validate() { } $this->request['method'] = $requestMethod[1]; - if (!method_exists($this->classes[$this->extension],$this->request['method']) && $this->extension != "rpc"){ + if ($this->extension != "rpc" && !method_exists($this->classes[$this->extension],$this->request['method'])){ throw new jsonRPCException("",$this->errorCodes['methodNotFound']); };