From dd451eca9126eb4b99ee205d825318e1c0492f5a Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 15 Nov 2007 06:55:20 +0000 Subject: [PATCH] The Phone PIN may be empty. - removed length check from PIN attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7795 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index ba00dbf23..8a22f9e53 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -1131,12 +1131,8 @@ class phoneAccount extends plugin } } - if((strlen($this->goFonPIN)<=0)){ - $message[]=(_("Phone PIN must be at least one character long.")); - }else{ - if(preg_match("/[^0-9a-z]/i",$this->goFonPIN)){ - $message[]=(_("The specified phone PIN contains invalid characters, only aphanumeric values are allowed here.")); - } + if(preg_match("/[^0-9a-z]/i",$this->goFonPIN)){ + $message[]=(_("The specified phone PIN contains invalid characters, only aphanumeric values are allowed here.")); } if ($this->initially_was_account != $this->is_account || $this->is_modified){ -- 2.30.2