From: hickert Date: Fri, 6 Feb 2009 14:46:08 +0000 (+0000) Subject: Updated gophone realtime dependencies X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11c3fffecbf5fe8d2969194962d0c0f11134e7f8;p=gosa.git Updated gophone realtime dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13400 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index bc97f0f7c..4b8432807 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -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)); } }