From f7e386221abfcdc1f9adecf989f96ab375f07592 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 15 Sep 2005 08:36:53 +0000 Subject: [PATCH] Fixed ldap error if new created conference was created without pin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1372 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../conference/class_phoneConferenceGeneric.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc index 783649b22..4a79d946f 100644 --- a/plugins/gofon/conference/class_phoneConferenceGeneric.inc +++ b/plugins/gofon/conference/class_phoneConferenceGeneric.inc @@ -403,13 +403,24 @@ class conference extends plugin /* Save to LDAP */ function save() { + + if((!isset($this->attrs['goFonPIN']))){ + $pin_use = false; + }else{ + $pin_use = true; + } + plugin::save(); $this->SQL_remove_me(true); $this->SQL_add_me(true); if(empty($this->goFonConferenceOption_P)){ - $this->attrs['goFonPIN']=array(); + if($pin_use){ + $this->attrs['goFonPIN']=array(); + }else{ + unset($this->attrs['goFonPIN']); + } } $this->attrs['goFonConferenceOption']=""; foreach(array("goFonConferenceOption_P","goFonConferenceOption_r","goFonConferenceOption_M","goFonConferenceOption_s", -- 2.30.2