mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-12 03:16:34 +00:00
Fix undefined index when option not set
This commit is contained in:
+1
-1
@@ -437,7 +437,7 @@ class Curl
|
||||
*/
|
||||
public function getOpt($option)
|
||||
{
|
||||
return $this->options[$option];
|
||||
return isset($this->options[$option]) ? $this->options[$option] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user