From ff9969b04e47ba7a6b710876a858ba7da4d7106e Mon Sep 17 00:00:00 2001 From: Krombel Date: Fri, 23 Feb 2018 18:32:41 +0100 Subject: [PATCH] restore reference to exec_curl_request --- MatrixConnection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MatrixConnection.php b/MatrixConnection.php index 8f59b84..f0d8aff 100644 --- a/MatrixConnection.php +++ b/MatrixConnection.php @@ -36,7 +36,7 @@ class MatrixConnection curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($send_message)); curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); - $response = exec_curl_request($handle); + $response = $this->exec_curl_request($handle); return isset($response["event_id"]); } @@ -60,7 +60,7 @@ class MatrixConnection curl_setopt($handle, CURLOPT_TIMEOUT, 60); curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); - $res = exec_curl_request($handle); + $res = $this->exec_curl_request($handle); return !(isset($res["errcode"]) && $res["errcode"] == "M_UNKNOWN"); } @@ -87,7 +87,7 @@ class MatrixConnection curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($data)); - return exec_curl_request($handle); + return $this->exec_curl_request($handle); } function exec_curl_request($handle)