Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit cae02be

Browse files
author
Dominik František Bučík
authored
Merge pull request #17 from dBucik/fix_ecs
fix: 🐛 Fix ECS check
2 parents 8d379f5 + 0bc2d67 commit cae02be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

www/CSCMfaContinue.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@
8181
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
8282
curl_setopt($ch, CURLOPT_POST, true);
8383
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
84+
$response = curl_exec($ch);
8485

85-
if (($response = curl_exec($ch)) === false) {
86+
if ($response === false) {
8687
throw new \Exception("Request to token endpoint wasn't successful : " . curl_error($ch));
8788
}
8889
$response = json_decode($response, true);
@@ -108,8 +109,8 @@
108109
curl_setopt($ch, CURLOPT_POST, true);
109110
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
110111
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $accessToken]);
111-
112-
if (($response = curl_exec($ch)) === false) {
112+
$response = curl_exec($ch);
113+
if ($response === false) {
113114
throw new \Exception("Request to token endpoint wasn't successful : " . curl_error($ch));
114115
}
115116

0 commit comments

Comments
 (0)