Skip to content

Commit

Permalink
Issues open-lms-open-source#30: Fix warning where curl options are co…
Browse files Browse the repository at this point in the history
…nstants instead of strings when using moodle curl class
  • Loading branch information
gthomas2 committed Sep 19, 2024
1 parent 137ee26 commit 5981256
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions classes/rest/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ protected function test_service_reachable($serviceuri) {
$this->logger->info('Testing service availability: '.$serviceuri);

$options = [
CURLOPT_TIMEOUT => 15,
CURLOPT_CONNECTTIMEOUT => 15,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
'CURLOPT_TIMEOUT' => 15,
'CURLOPT_CONNECTTIMEOUT' => 15,
'CURLOPT_RETURNTRANSFER' => true,
'CURLOPT_SSL_VERIFYHOST' => 0,
'CURLOPT_SSL_VERIFYPEER' => 0,
];
$curl = new \curl();
$curl->setopt($options);
Expand Down

0 comments on commit 5981256

Please sign in to comment.