From: hickert Date: Mon, 6 Sep 2010 07:05:36 +0000 (+0000) Subject: Updated gosa-si dependencies X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae8fc28d6ccfcdf4933c278e59d3b22d73d92f6b;p=gosa.git Updated gosa-si dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index c38068201..f6ddf4f6b 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -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("
gosa_network_completition
". - "GOSAGOSA".$this->cn."
", 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("
gosa_network_completition
". + "GOSAGOSA".$this->cn."
", 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']; + } + } }