Code

Added some additional checks ...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Sep 2006 09:32:53 +0000 (09:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Sep 2006 09:32:53 +0000 (09:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4810 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index d35b85ef818695eae249bccb7b03430ec4374607..4f33ca2cd3e1d62ed2eacd4c62d9faf44ec0ea7c 100644 (file)
@@ -153,13 +153,17 @@ class printgeneric extends plugin
   function set_acl_base($base)
   {
     plugin::set_acl_base($base);
-    $this->netConfigDNS->set_acl_base($base);
+    if(is_object($this->netConfigDNS)){
+      $this->netConfigDNS->set_acl_base($base);
+    }
   }
 
   function set_acl_category($cat)
   {
     plugin::set_acl_category($cat);
-    $this->netConfigDNS->set_acl_category($cat);
+    if(is_object($this->netConfigDNS)){
+      $this->netConfigDNS->set_acl_category($cat);
+    }
   }
 
   /* Detect type of printer.