make sure headers is set prior to accessing
This commit is contained in:
parent
14083496d7
commit
629ca0df2e
|
@ -28,7 +28,7 @@ class Client extends ElasticaClient
|
|||
'host' => $connection->getHost(),
|
||||
'port' => $connection->getPort(),
|
||||
'transport' => $connection->getTransport(),
|
||||
'headers' => $connection->getConfig('headers'),
|
||||
'headers' => $connection->hasConfig('headers')?$connection->getConfig('headers'):array(),
|
||||
);
|
||||
|
||||
$this->_logger->logQuery($path, $method, $data, $time, $connection_array, $query);
|
||||
|
|
Loading…
Reference in a new issue