Code

Updated gophone realtime dependencies
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Feb 2009 14:46:08 +0000 (14:46 +0000)
committerhickert <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

index bc97f0f7c79741049ac8c24177a79c4623e4eb84..4b8432807a9396fef133857fbeb4e92d4f5783e1 100644 (file)
@@ -1044,12 +1044,12 @@ class phoneAccount extends plugin
 
     /* 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));
       }
     }