Skip to content

Commit

Permalink
Update give more details when phone number format is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
luukverhoeven committed Dec 16, 2024
1 parent 953eaf4 commit 5296023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5296023

Please sign in to comment.