From: hickert Date: Tue, 20 Nov 2007 14:59:08 +0000 (+0000) Subject: Fixed undefined index. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69eb808615945f6fd011d47d6d25e5bd103ee3f0;p=gosa.git Fixed undefined index. Fixed Fatal error on page reload - When creating an new FAI object git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7829 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index a9fc28fcf..f11e22407 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -698,15 +698,17 @@ class faiManagement extends plugin foreach($this->dialog->check() as $msg){ print_red($msg); } - }else{ + }elseif(isset($this->dialog->objectClass)){ $this->dn = "new" ; $a_setup= $this->get_type(array("objectClass"=>array($this->dialog->objectClass))); $name = $this->dialog->save(); - $this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai"); - $this->dialog->set_acl_base($_SESSION['CurrentMainBase']); - $this->dialog->by_object[$a_setup[1]]->cn = $name; - $this->is_dialog = true; + if(class_exists($a_setup[0])){ + $this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai"); + $this->dialog->set_acl_base($_SESSION['CurrentMainBase']); + $this->dialog->by_object[$a_setup[1]]->cn = $name; + $this->is_dialog = true; + } } }