From 4b585d1dcacb20a09bf715c3551c0c9c8a867277 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 23 Apr 2007 11:43:47 +0000 Subject: [PATCH] Fixed warning and put radio buttons to first field of role selection list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6173 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_acl.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/class_acl.inc b/include/class_acl.inc index d51f84f9b..4e94b40c4 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -289,6 +289,7 @@ class acl extends plugin } if(isset($_POST['selected_role'])){ + $this->aclContents = ""; $this->aclContents = base64_decode($_POST['selected_role']); } } @@ -549,7 +550,7 @@ class acl extends plugin $D_List =new DivSelectBox("Acl_Roles"); $selected = $this->aclContents; - if(!isset($list[$this->aclContents])){ + if(!is_string($this->aclContents) || !isset($list[$this->aclContents])){ $selected = key($list); } @@ -562,9 +563,9 @@ class acl extends plugin $option = ""; } - $field1 = array("string" => $values['cn'], "attach" => "style='width:200px;'") ; - $field2 = array("string" => $values['description']) ; - $field3 = array("string" => $option, "attach" => "style='border-right:0px;'") ; + $field1 = array("string" => $option) ; + $field2 = array("string" => $values['cn'], "attach" => "style='width:200px;'") ; + $field3 = array("string" => $values['description'],"attach" => "style='border-right:0px;'") ; $D_List->AddEntry(array($field1,$field2,$field3)); } -- 2.30.2