Code

fixed undefined index errors in samba tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Nov 2005 07:06:44 +0000 (07:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Nov 2005 07:06:44 +0000 (07:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2108 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_sambaMungedDial.inc
plugins/personal/samba/class_sambaAccount.inc

index 2c08b9b9a6b47c6e95eda7e23d7077bdf0dfcb6a..96c8b25a1cacb15e97f5c9fb0230b7dec40bb981 100644 (file)
@@ -272,6 +272,13 @@ class sambaMungedDial
                } else {
                        $result['CtxInitialProgramMode'] = "";
                }
+       }else{
+               foreach ($this->timeParams as $value) {
+                       $result[$value."Mode"]= "";
+               }
+               
+               $result['CtxInitialProgramMode'] = "";
+
        }
 
        return $result;
index ad748f3d72ca52dccc2ddec9f526acd7e458c045..d64aff27ab9e4c697015ff2c234f6b374d63e749 100644 (file)
@@ -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");
       }