summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3146c6b)
raw | patch | inline | side by side (parent: 3146c6b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 15 Nov 2007 06:55:20 +0000 (06:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 15 Nov 2007 06:55:20 +0000 (06:55 +0000) |
- removed length check from PIN attribute
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7795 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7795 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 ba00dbf23821050911858ca373af9de98e0efe5a..8a22f9e530ffa778dfb8274bfbbd184b06ec5600 100644 (file)
}
}
- 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){