summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a4cf12c)
raw | patch | inline | side by side (parent: a4cf12c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Nov 2007 14:59:08 +0000 (14:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Nov 2007 14:59:08 +0000 (14:59 +0000) |
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7829 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiManagement.inc | patch | blob | history |
index a9fc28fcf4d992d148e3c967b2d73fd4c8e77fac..f11e22407e982e394f35748a9cc37a1aa073d834 100644 (file)
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;
+ }
}
}