summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d45a41d)
raw | patch | inline | side by side (parent: d45a41d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Feb 2009 14:46:08 +0000 (14:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Feb 2009 14:46:08 +0000 (14:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13400 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history |
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));
}
}