#441 SMS sending

This commit is contained in:
Roland Gruber 2025-06-01 17:26:24 +02:00
parent d87931d1f4
commit 9078e22a51

View file

@ -1720,6 +1720,9 @@ function sendSmsTestMessage(string $providerId, ?string $apiKey, ?string $apiTok
* @return string|null phone number if found
*/
function getSmsPhoneNumber(array $attributes): ?string {
if (empty($_SESSION['cfgMain']->smsProvider)) {
return null;
}
$phoneAttributes = array_change_key_case($_SESSION['cfgMain']->getSmsAttributes());
$attributes = array_change_key_case($attributes);
foreach ($phoneAttributes as $phoneAttribute) {