diff --git a/src/RequestV5.php b/src/RequestV5.php index 96d1830..a12f04d 100644 --- a/src/RequestV5.php +++ b/src/RequestV5.php @@ -84,7 +84,7 @@ protected function nonce(){ * */ protected function signature(){ if(!empty($this->key) && !empty($this->secret)){ - if(array_key_exists('X-BAPI-RECV-WINDOW',$this->options['headers'])){ + if(isset($this->options['headers']) && array_key_exists('X-BAPI-RECV-WINDOW',$this->options['headers'])){ $this->recv_window=$this->options['headers']['X-BAPI-RECV-WINDOW']; unset($this->options['headers']['X-BAPI-RECV-WINDOW']); }