Skip to content

Commit

Permalink
Fix cividesk#62 - curl errors with PHP7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Jul 30, 2018
1 parent 222edb0 commit c025aac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CRM/Sparkpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static private function _getHandle() {
// Reset HTTP request method to GET as it might have been changed to POST or DELETE
// cf. https://stackoverflow.com/questions/4163865/how-to-reset-curlopt-customrequest
curl_setopt(self::$ch, CURLOPT_HTTPGET, TRUE);
curl_setopt(self::$ch, CURLOPT_CUSTOMREQUEST, NULL);
curl_setopt(self::$ch, CURLOPT_CUSTOMREQUEST, "GET");
}
return self::$ch;
}
Expand Down
5 changes: 3 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
<author>Cividesk</author>
<email>info@cividesk.com</email>
</maintainer>
<releaseDate>2016-05-14</releaseDate>
<version>1.2</version>
<releaseDate>2018-07-30</releaseDate>
<version>1.3</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.4</ver>
<ver>4.6</ver>
<ver>4.7</ver>
<ver>5.0</ver>
</compatibility>
<comments>As always, read the documentation first! Once the extension is enabled, go to Administer &gt;&gt; System Settings &gt;&gt; Outbound Email (SparkPost) to configure and send a test email.</comments>
<civix>
Expand Down

0 comments on commit c025aac

Please sign in to comment.