From 6c3da23f15c961fc1b4ff7e2008297f9577e6962 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Nov 2008 12:04:57 +0000 Subject: [PATCH] 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 --- gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } } -- 2.30.2