From 230b83950cd6d588b149b5b74a797dc6b5633aab Mon Sep 17 00:00:00 2001 From: Adrian Pemsel Date: Tue, 22 Mar 2011 06:28:51 -0700 Subject: [PATCH] fix setOption() and setOptions() --- lib/curl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/curl.php b/lib/curl.php index d7dd9ca..041e519 100644 --- a/lib/curl.php +++ b/lib/curl.php @@ -177,7 +177,7 @@ public function setOptions($options) } /** - * Set an associative array of CURLOPT options + * Set a CURLOPT option **/ public function setOption($name, $value) { @@ -185,7 +185,7 @@ public function setOption($name, $value) { $name = constant('CURLOPT_'.str_replace('CURLOPT_', '', strtoupper($name))); } - $this->options[$name] = $options; + $this->options[$name] = $value; } /**