From 11c3fffecbf5fe8d2969194962d0c0f11134e7f8 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Feb 2009 14:46:08 +0000 Subject: [PATCH] Updated gophone realtime dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13400 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } } -- 2.30.2