From cd2780790bfa10c2e70a9559dbb867b990f5d9f9 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 5 Sep 2008 14:00:43 +0000 Subject: [PATCH] Opsi update - again a small error fix git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12372 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc index 079335f24..da4ccfd55 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc @@ -449,8 +449,13 @@ class opsiGeneric extends plugin This is the case, if this product is newly selected. Or if there was at least one configuration attribute modified. */ - $cfg_1 = $this->a_availableNetbootProducts[$this->s_selectedNetbootProduct]['CFG']; - $cfg_2 = $this->a_initial_availableNetbootProducts[$this->s_selectedNetbootProduct]['CFG']; + $cfg_1 = $cfg_2 = array(); + if(isset($this->a_availableNetbootProducts[$this->s_selectedNetbootProduct]['CFG'])){ + $cfg_1 = $this->a_availableNetbootProducts[$this->s_selectedNetbootProduct]['CFG']; + } + if($this->a_initial_availableNetbootProducts[$this->s_selectedNetbootProduct]['CFG']){ + $cfg_2 = $this->a_initial_availableNetbootProducts[$this->s_selectedNetbootProduct]['CFG']; + } $diffs = $this->get_config_changes($cfg_1,$cfg_2); $to_update = array(); if( !$this->initially_was_account || -- 2.30.2