Skip to content

Commit ed82b68

Browse files
committed
A typo, but a consistent typo...
1 parent 0e9acdb commit ed82b68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

restclient.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,18 @@ public function execute($url, $method='GET', $parameters=array(), $headers=array
150150
// merged with parameters specified in the default options.
151151
if(is_array($parameters)){
152152
$parameters = array_merge($client->options['parameters'], $parameters);
153-
$paraeters_string = $client->format_query($parameters);
153+
$parameters_string = $client->format_query($parameters);
154154
}
155155
else
156-
$paraeters_string = (string) $parameters;
156+
$parameters_string = (string) $parameters;
157157

158158
if(strtoupper($method) == 'POST'){
159159
$curlopt[CURLOPT_POST] = TRUE;
160-
$curlopt[CURLOPT_POSTFIELDS] = $paraeters_string;
160+
$curlopt[CURLOPT_POSTFIELDS] = $parameters_string;
161161
}
162162
elseif(strtoupper($method) != 'GET'){
163163
$curlopt[CURLOPT_CUSTOMREQUEST] = strtoupper($method);
164-
$curlopt[CURLOPT_POSTFIELDS] = $paraeters_string;
164+
$curlopt[CURLOPT_POSTFIELDS] = $parameters_string;
165165
}
166166
elseif($parameters_string){
167167
$client->url .= strpos($client->url, '?')? '&' : '?';

0 commit comments

Comments
 (0)