From c5de19eed8760af4019dac53050d30d561894e81 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Sep 2008 12:15:09 +0000 Subject: [PATCH] Added check to avoid php breaks if opsi tabs are not defined. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12329 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiManagement.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index 6f99ab6de..2a4eb0b42 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -268,8 +268,12 @@ class faiManagement extends plugin $name = $this->objects[$s_entry]['cn']; $cfg = $this->opsi->get_product_properties($name); $this->dialog = new tabs_opsiProdConfig($this->config, $this->config->data['TABS']['OPSIPRODCONFIG'],"","opsi"); - $this->dialog->by_object['opsiProperties']->set_cfg($cfg); - $this->dialog->by_object['opsiProperties']->set_product($name); + if(isset($this->dialog->by_object['opsiProperties'])){ + $this->dialog->by_object['opsiProperties']->set_cfg($cfg); + $this->dialog->by_object['opsiProperties']->set_product($name); + }else{ + trigger_error("Unknown tab, please check config."); + } } if($this->dialog instanceof tabs_opsiProdConfig && isset($_POST['cancel_properties'])){ $this->dialog = NULL; -- 2.30.2