Code

Updated error handling in jsronRPC class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Nov 2010 15:18:41 +0000 (15:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Nov 2010 15:18:41 +0000 (15:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20206 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_jsonRPC.inc

index b9ded4fe3c851def5c1709bc11559c9e70f5df04..05ceec23581bce45a9a856657932b41c869fdb27 100644 (file)
@@ -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