From ee8dbb03bff9516f6292a34964c4bdcdd6fd8460 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 19 Aug 2005 07:48:30 +0000 Subject: [PATCH] Fixed PIN checking git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1183 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- 2.30.2