Code

Boolean options can only be 0 or 1 in phone macros
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Nov 2008 12:04:57 +0000 (12:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Nov 2008 12:04:57 +0000 (12:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12870 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc

index cbef4a0f28687d534e2680b8f07687173fddb378..de8d4cc14a26bef1b979f490df259f71e6977cec 100644 (file)
@@ -1241,9 +1241,9 @@ class phoneAccount extends plugin
             if(isset($_POST['post_success'])){
               if($this->macroarray[$this->macro][$key]['type']=="bool"){
                 if(isset($_POST[$this->macroarray[$this->macro][$key]['var']])) {
-                  $this->macroarray[$this->macro][$key]['choosen']=$_POST[$paras['var']];
+                  $this->macroarray[$this->macro][$key]['choosen']=1;
                 }else{
-                  $this->macroarray[$this->macro][$key]['choosen']=false;
+                  $this->macroarray[$this->macro][$key]['choosen']=0;
                 }
               }
             }