From 5296023c4cb4c7aca85ccd3e67207a493ea0be38 Mon Sep 17 00:00:00 2001 From: Luuk Verhoeven Date: Mon, 16 Dec 2024 17:02:32 +0100 Subject: [PATCH] Update give more details when phone number format is wrong --- classes/provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/provider.php b/classes/provider.php index ef3dd4a..b686541 100644 --- a/classes/provider.php +++ b/classes/provider.php @@ -109,7 +109,7 @@ final protected function parse_phone_number(string $phone, string $country): str // Verify it's a valid phone number. if ($phoneutil->isValidNumber($phone) == false) { - throw new moodle_exception('error:invalid_phone', 'availability_sms' , s($phone)); + throw new moodle_exception('error:invalid_phone', 'availability_sms' , '',s($phone)); } // Check if there are zeros added to the start.