From 2580ea11e212988069352983267493241a2ede21 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Sep 2006 09:32:53 +0000 Subject: [PATCH] Added some additional checks ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4810 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index d35b85ef8..4f33ca2cd 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -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. -- 2.30.2