From b54a15bf7aac2df7a50823b8aa4f4e5f55370f61 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 Nov 2010 15:18:41 +0000 Subject: [PATCH] Updated error handling in jsronRPC class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20206 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_jsonRPC.inc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 -- 2.30.2