HttpClient - Fix bad return format
authorTim Otten <totten@civicrm.org>
Wed, 8 May 2013 19:26:04 +0000 (12:26 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 8 May 2013 19:26:04 +0000 (12:26 -0700)
CRM/Utils/HttpClient.php

index 6aaa9d026e9de6339a40b67748e26e22bc747533..1c3b10ab5d823a14a097ded43e9c816e2acb0a95 100644 (file)
@@ -129,7 +129,7 @@ class CRM_Utils_HttpClient {
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     $data = curl_exec($ch);
     if (curl_errno($ch)) {
-      return array(self::STATUS_DL_ERROR . $data);
+      return array(self::STATUS_DL_ERROR, $data);
     }
     else {
       curl_close($ch);
@@ -165,7 +165,7 @@ class CRM_Utils_HttpClient {
     curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
     $data = curl_exec($ch);
     if (curl_errno($ch)) {
-      return array(self::STATUS_DL_ERROR . $data);
+      return array(self::STATUS_DL_ERROR, $data);
     }
     else {
       curl_close($ch);