From: cajus Date: Fri, 19 Aug 2005 07:48:30 +0000 (+0000) Subject: Fixed PIN checking X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee8dbb03bff9516f6292a34964c4bdcdd6fd8460;p=gosa.git Fixed PIN checking git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1183 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index d579878fb..2f6e55305 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -768,7 +768,7 @@ class phoneAccount extends plugin 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"));