From a0bf70f11077fe8463c9a7e7b9914f8948487449 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 10 Jun 2005 09:39:11 +0000 Subject: [PATCH] isvalid should return only bool values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_certificate.inc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) 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*/ -- 2.30.2