Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_dhcpHost.inc
index 55e1bee64f511252aef8c53fdb68bbcb59404e8c..e8aab5c950b690ff5168734b9808ba66bf899f6e 100644 (file)
@@ -63,7 +63,7 @@ class dhcpHost extends dhcpPlugin
           "fddi" => _("FDDI"),
           "token-ring" => _("Token Ring")));
     /* Show main page */
-    $display= $smarty->fetch(get_template_path('dhcp_host.tpl', TRUE)).$this->network->execute();
+    $display= $smarty->fetch(get_template_path('dhcp_host.tpl', TRUE,dirname(__FILE__))).$this->network->execute();
 
     /* Merge arrays for advanced view */
     $this->fix_options();
@@ -127,7 +127,10 @@ class dhcpHost extends dhcpPlugin
   {
     $message= array();
 
-    $cache = $this->parent->dhcpObjectCache;
+    $cache = array();
+    if(isset($this->parent)){
+      $cache = $this->parent->dhcpObjectCache;
+    }
   
     /* All required fields are set? */
     if ($this->cn == ""){