Code

isvalid should return only bool values
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 09:39:11 +0000 (09:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 09:39:11 +0000 (09:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@652 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_certificate.inc

index c5698ae514aab1c42f76fc7b826da51fd40ff936..f7e784d5f6c5484640b9aa5f7f663a91c83b252e 100755 (executable)
@@ -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*/