Skip to content

Commit f26a4c2

Browse files
committed
check if logger exists before getting log file
1 parent ce34878 commit f26a4c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/net/authorize/util/HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function _sendRequest($xmlRequest)
102102
$this->now(), $ex->getCode(), $ex->getMessage(), $ex->getTraceAsString(), $ex->getFile(), $ex->getLine() );
103103
$this->logger->error($errorMessage);
104104
}
105-
if ($this->logger->getLogFile()) {
105+
if ($this->logger && $this->logger->getLogFile()) {
106106
if ($curl_error = curl_error($curl_request)) {
107107
$this->logger->error("CURL ERROR: $curl_error");
108108
}

0 commit comments

Comments
 (0)