diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index bc97f0f7c79741049ac8c24177a79c4623e4eb84..4b8432807a9396fef133857fbeb4e92d4f5783e1 100644 (file)
/* Add phone number */
if (isset($_POST["add_phonenumber"]) && $_POST['phonenumber']){
- if (is_phone_nr($_POST['phonenumber']) && strlen($_POST['phonenumber']) <=10){
+ if (is_phone_nr($_POST['phonenumber']) && strlen($_POST['phonenumber']) <= 5){
$number= $_POST["phonenumber"];
$this->phoneNumbers[$number]= $number;
$this->is_modified= TRUE;
} else {
- print_red(_("Please enter a valid phone number! Because of the realtime extension tables, the number must be less than 11 digits."));
+ print_red(sprintf(_("Please enter a valid phone number! Because of the realtime extension tables, the number must be less than %s digits."),5));
}
}