From: hickert Date: Tue, 29 Nov 2005 07:06:44 +0000 (+0000) Subject: fixed undefined index errors in samba tab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=61a3f6d882f39661119bd6258ac22d6612552870;p=gosa.git fixed undefined index errors in samba tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2108 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_sambaMungedDial.inc b/include/class_sambaMungedDial.inc index 2c08b9b9a..96c8b25a1 100644 --- a/include/class_sambaMungedDial.inc +++ b/include/class_sambaMungedDial.inc @@ -272,6 +272,13 @@ class sambaMungedDial } else { $result['CtxInitialProgramMode'] = ""; } + }else{ + foreach ($this->timeParams as $value) { + $result[$value."Mode"]= ""; + } + + $result['CtxInitialProgramMode'] = ""; + } return $result; diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index ad748f3d7..d64aff27a 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -579,7 +579,7 @@ class sambaAccount extends plugin /* In case of javascript, disable some fields on demand */ - if ($this->samba3 && $_SESSION['js']){ + if ($this->samba3){ foreach($this->mungedObject->getOnDemandFlags() as $key => $value) { $smarty->assign("$key", "$value"); }