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