From 5be2dd92fef351d87c3d22454b64830aa5b172c0 Mon Sep 17 00:00:00 2001 From: Mantas Radzevicius Date: Wed, 8 Nov 2017 14:07:29 +0200 Subject: [PATCH] Check curl handle explicitly for resource type instead of null. --- src/Pusher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pusher.php b/src/Pusher.php index c6219caa..600ba3a0 100755 --- a/src/Pusher.php +++ b/src/Pusher.php @@ -253,7 +253,7 @@ private function create_curl($domain, $s_url, $request_method = 'GET', $query_pa $this->log('INFO: create_curl( '.$full_url.' )'); // Create or reuse existing curl handle - if (null === $this->ch) { + if (!is_resource($this->ch)) { $this->ch = curl_init(); }