summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0efa6d)
raw | patch | inline | side by side (parent: c0efa6d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Aug 2005 07:48:30 +0000 (07:48 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Aug 2005 07:48:30 +0000 (07:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1183 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 d579878fba45dc57d53012f73f8f7e9bdb3dae03..2f6e553056686013dbd7f58b58555f2f2359c180 100644 (file)
if(($this->goFonPIN)==""){
$message[]= sprintf(_("You need to specify a Phone PIN."));
}else{
- if(strcmp ((int)($this->goFonPIN),($this->goFonPIN))){
+ if(!is_id($this->goFonPIN)){
$message[] = sprintf(_("The given PIN is not valid, only numbers are allowed for this type."));
}elseif(strlen($this->goFonPIN) < 4){
$message[] = sprintf(_("The given PIN is too short"));