From: hickert Date: Tue, 9 Nov 2010 15:18:41 +0000 (+0000) Subject: Updated error handling in jsronRPC class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b54a15bf7aac2df7a50823b8aa4f4e5f55370f61;p=gosa.git Updated error handling in jsronRPC class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20206 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_jsonRPC.inc b/gosa-core/include/class_jsonRPC.inc index b9ded4fe3..05ceec235 100644 --- a/gosa-core/include/class_jsonRPC.inc +++ b/gosa-core/include/class_jsonRPC.inc @@ -143,8 +143,9 @@ class jsonRPC { */ public function success() { - return(curl_errno($this->curlHandler) == 0 || - (isset($this->lastStats['http_code']) && $this->lastStats['http_code'] == 200)); + return(curl_errno($this->curlHandler) == 0 && + isset($this->lastStats['http_code']) && + $this->lastStats['http_code'] == 200); } @@ -228,13 +229,6 @@ class jsonRPC { } - - - - - - - /*! \brief This method finally initiates the real RPC requests and handles * the result from the server. * @param string method The method to call