diff --git a/lib/LanWebsite/UserManager/Lsucs.php b/lib/LanWebsite/UserManager/Lsucs.php index 24b2923..b4007c4 100644 --- a/lib/LanWebsite/UserManager/Lsucs.php +++ b/lib/LanWebsite/UserManager/Lsucs.php @@ -80,6 +80,10 @@ public function getLsucsAuthResponse($method, $params) { curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); + if ($response === false) { + throw new Exception('Fatal Auth Error. Request to Api Failed'); + } + //Decode response and store $result = json_decode($response, true);