Code

Fixed Fatal Error in krbServer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jul 2008 08:50:33 +0000 (08:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jul 2008 08:50:33 +0000 (08:50 +0000)
-Added check to ensure that the reseusted class is avaiable.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11550 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc

index 250d3552bd6ca731992672753a1c83570be69d25..36dc66694ec6997630f6723acbe20dc8e3343182 100644 (file)
@@ -282,7 +282,7 @@ class goKrbServer extends goService{
 
       /* Add new Policy requested 
        */
-      if(isset($_POST['policy_add'])){
+      if(isset($_POST['policy_add']) && class_available("krb5_policy")){
         $this->dialog = new krb5_policy($this->config,array(),$this);
         $this->id = -1;
       }