Code

Updated gosa-si dependencies
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 07:05:36 +0000 (07:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 07:05:36 +0000 (07:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19511 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_termDNS.inc

index c3806820105ab012dc51e1928edf2d20c0de74eb..f6ddf4f6bb5ad87a2f99a0a92b26161a35854e3f 100644 (file)
@@ -301,15 +301,17 @@ class termDNS extends plugin
  
     /* Check for autonet button */
     if (isset($_POST['autonet']) && ($this->acl_is_writeable("ipHostNumber") || $this->acl_is_writeable("macAddress"))){
-      $d= new gosaSupportDaemon(TRUE, 0.5);
-      $res= $d->_send("<xml><header>gosa_network_completition</header>".
-          "<source>GOSA</source><target>GOSA</target><hostname>".$this->cn."</hostname></xml>", TRUE);
-      if (isset($res['XML']['IP']) && $this->acl_is_writeable("ipHostNumber")){
-        $this->ipHostNumber= $res['XML']['IP'];
-      }
-      if (isset($res['XML']['MAC']) && $this->acl_is_writeable("macAddress")){
-        $this->macAddress= $res['XML']['MAC'];
-      }
+        if(class_available("gosaSupportDaemon")){
+            $d= new gosaSupportDaemon(TRUE, 0.5);
+            $res= $d->_send("<xml><header>gosa_network_completition</header>".
+                    "<source>GOSA</source><target>GOSA</target><hostname>".$this->cn."</hostname></xml>", TRUE);
+            if (isset($res['XML']['IP']) && $this->acl_is_writeable("ipHostNumber")){
+                $this->ipHostNumber= $res['XML']['IP'];
+            }
+            if (isset($res['XML']['MAC']) && $this->acl_is_writeable("macAddress")){
+                $this->macAddress= $res['XML']['MAC'];
+            }
+        }
     }