Fix undefined index when option not set

This commit is contained in:
Zach Borboa
2016-09-03 22:49:41 -07:00
parent 5087433ba1
commit a02c8aa5f2
+1 -1
View File
@@ -437,7 +437,7 @@ class Curl
*/
public function getOpt($option)
{
return $this->options[$option];
return isset($this->options[$option]) ? $this->options[$option] : null;
}
/**