Code

The sip PIN may be empty
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Nov 2007 06:55:55 +0000 (06:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Nov 2007 06:55:55 +0000 (06:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7796 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index 676a47c749adae61594f0c7df6fb6a20f91d6bd4..9aa3b1635cbe078817ebb4df34345bce4b9e1031 100644 (file)
@@ -1158,12 +1158,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){