From: cajus Date: Fri, 10 Jun 2005 09:39:11 +0000 (+0000) Subject: isvalid should return only bool values X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a0bf70f11077fe8463c9a7e7b9914f8948487449;p=gosa.git isvalid should return only bool values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_certificate.inc b/include/class_certificate.inc index c5698ae51..f7e784d5f 100755 --- a/include/class_certificate.inc +++ b/include/class_certificate.inc @@ -168,25 +168,10 @@ class certificate } } - function isvalid($returnstr = false) + function isvalid() { - if(($this->type != false)&&(count($this->info)>1)) - { - if($returnstr){ - return(_("valid")); - }else{ - return(true); - } - }else{ - if($returnstr){ - return(_("invalid")); - }else{ - return(false); - } - - } + return (($this->type != false)&&(count($this->info)>1)); } - /* Export Certificate to specified file, with specified method*/