mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-05 19:42:31 +02:00
#441 SMS sending
This commit is contained in:
parent
9850f3155b
commit
a6cf42fbf3
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class GatewayApiSmsProvider implements SmsProvider {
|
|||
curl_close($curl);
|
||||
logNewMessage(LOG_DEBUG, 'SMS gateway response: ' . $response);
|
||||
$responseJson = json_decode($response, true);
|
||||
if (($httpCode !== 200)) {
|
||||
if ($httpCode !== 200) {
|
||||
logNewMessage(LOG_ERR, 'Unable to send SMS: ' . $response);
|
||||
$message = $responseJson['message'] ?? '';
|
||||
throw new LAMException(null, $message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue