From 12e692d5b50d3e72dc266e98adda41ad5bc81fda Mon Sep 17 00:00:00 2001 From: Vadim Kruchkov Date: Wed, 27 Jun 2012 14:17:01 +0400 Subject: [PATCH 1/2] Zend_Http_Client_Exception to EHttpClientException --- extensions/EHttpClient/EHttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/EHttpClient/EHttpClient.php b/extensions/EHttpClient/EHttpClient.php index 61b15af..29c0ab1 100644 --- a/extensions/EHttpClient/EHttpClient.php +++ b/extensions/EHttpClient/EHttpClient.php @@ -1074,7 +1074,7 @@ public function request($method = null) } else { - throw new Zend_Http_Client_Exception('Adapter does not support streaming'); + throw new EHttpClientException(Yii::t('EHttpClient', 'Adapter does not support streaming')); } } From 7faff59066f2450ee8ac8f10b828bc6c88ecd878 Mon Sep 17 00:00:00 2001 From: Vadim Kruchkov Date: Wed, 27 Jun 2012 14:19:40 +0400 Subject: [PATCH 2/2] undefined variable $flatted --- extensions/EHttpClient/EHttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/EHttpClient/EHttpClient.php b/extensions/EHttpClient/EHttpClient.php index 29c0ab1..fe15e3c 100644 --- a/extensions/EHttpClient/EHttpClient.php +++ b/extensions/EHttpClient/EHttpClient.php @@ -1340,7 +1340,7 @@ protected function _prepareBody() if (is_array($this->paramsPost[$fieldName])) { $flattened = self::_flattenParametersArray($this->paramsPost[$fieldName], $fieldName); - foreach ($flatted as $pp) + foreach ($flattened as $pp) { $body .= self::encodeFormData($boundary, $pp[0], $pp[1]); }