From: hickert Date: Mon, 3 Nov 2008 12:04:57 +0000 (+0000) Subject: Boolean options can only be 0 or 1 in phone macros X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c3da23f15c961fc1b4ff7e2008297f9577e6962;p=gosa.git Boolean options can only be 0 or 1 in phone macros git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12870 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc index cbef4a0f2..de8d4cc14 100644 --- a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc +++ b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc @@ -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; } } }