Index: trunk/expressoAdmin1_2/inc/class.boconfiguration.inc.php
===================================================================
--- trunk/expressoAdmin1_2/inc/class.boconfiguration.inc.php	(revision 5144)
+++ trunk/expressoAdmin1_2/inc/class.boconfiguration.inc.php	(revision 7681)
@@ -166,5 +166,5 @@
                $params['inputTextMaximumRecipientsGroupModal'] = 0 ;
 
-            foreach ($params[selectGroupsInRule] as $groupInRule)
+            foreach ($params['selectGroupsInRule'] as $groupInRule)
             {
                 //Verifica se este usuario Já tem uma regra
Index: trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php
===================================================================
--- trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php	(revision 7655)
+++ trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php	(revision 7681)
@@ -112,9 +112,9 @@
 					$ldap_search = ldap_search($ldap_conn, $GLOBALS['phpgw_info']['server']['ldap_context'], $filter, $justthese);
 					$ldap_result = ldap_get_entries($ldap_conn, $ldap_search);
-					$p->set_var('manager_lid', $array_managers[manager_lid]);
+					$p->set_var('manager_lid', $array_managers['manager_lid']);
 					$p->set_var('manager_cn', $ldap_result[0]['cn'][0] == '' ? '<font color=red>NAO ENCONTRADO NO LDAP</font>' : $ldap_result[0]['cn'][0]);
 					$p->set_var('context', $managers_context);
-					$p->set_var('link_edit',$this->row_action('edit','edit_managers',$array_managers[manager_lid],$array_managers[context]));
-					$p->set_var('link_delete',$this->row_action('delete','delete_managers',$array_managers[manager_lid],$array_managers[context]));
+					$p->set_var('link_edit',$this->row_action('edit','edit_managers',$array_managers['manager_lid'],$array_managers['context']));
+					$p->set_var('link_delete',$this->row_action('delete','delete_managers',$array_managers['manager_lid'],$array_managers['context']));
 					$p->set_var('link_copy',"<a href='#' onClick='javascript:copy_manager(\"".$array_managers['manager_lid']."\");'>Copiar</a>");
 					$p->fp('rows','row',True);
Index: trunk/expressoAdmin1_2/inc/class.functions.inc.php
===================================================================
--- trunk/expressoAdmin1_2/inc/class.functions.inc.php	(revision 7655)
+++ trunk/expressoAdmin1_2/inc/class.functions.inc.php	(revision 7681)
@@ -120,160 +120,160 @@
 			{
 				case list_users:
-					if ($array_acl[acl_add_users] || $array_acl[acl_edit_users] || $array_acl[acl_delete_users] || $array_acl[acl_change_users_password] || $array_acl[acl_change_users_quote] || $array_acl[acl_edit_sambausers_attributes] || $array_acl[acl_view_users] || $array_acl[acl_manipulate_corporative_information])
+					if ($array_acl['acl_add_users'] || $array_acl['acl_edit_users'] || $array_acl['acl_delete_users'] || $array_acl['acl_change_users_password'] || $array_acl['acl_change_users_quote'] || $array_acl['acl_edit_sambausers_attributes'] || $array_acl['acl_view_users'] || $array_acl['acl_manipulate_corporative_information'])
 						return true;
 					break;
 				case add_users:
-					if ($array_acl[acl_add_users])
+					if ($array_acl['acl_add_users'])
 						return true;
 					break;
 				case edit_users:
-					if ($array_acl[acl_edit_users])
+					if ($array_acl['acl_edit_users'])
 						return true;
 					break;
 				case delete_users:
-					if ($array_acl[acl_delete_users])
+					if ($array_acl['acl_delete_users'])
 						return true;
 					break;
 				case rename_users:
-					if ($array_acl[acl_rename_users])
+					if ($array_acl['acl_rename_users'])
 						return true;
 					break;
 				case view_users:
-					if ($array_acl[acl_view_users])
+					if ($array_acl['acl_view_users'])
 						return true;
 					break;
 				case edit_users_picture:
-					if ($array_acl[acl_edit_users_picture])
+					if ($array_acl['acl_edit_users_picture'])
 						return true;
 					break;
 				case manipulate_corporative_information:
-					if ($array_acl[acl_manipulate_corporative_information])
+					if ($array_acl['acl_manipulate_corporative_information'])
 						return true;
 					break;
 				case change_users_password:
-					if ($array_acl[acl_change_users_password])
+					if ($array_acl['acl_change_users_password'])
 						return true;
 					break;
 				case change_users_quote:
-					if ($array_acl[acl_change_users_quote])
+					if ($array_acl['acl_change_users_quote'])
 						return true;
 					break;
 				case set_user_default_password:
-					if ($array_acl[acl_set_user_default_password])
+					if ($array_acl['acl_set_user_default_password'])
 						return true;
 					break;
 				case empty_user_inbox:
-					if (($array_acl[acl_empty_user_inbox]) && ($array_acl[acl_edit_users]))
+					if (($array_acl['acl_empty_user_inbox']) && ($array_acl['acl_edit_users']))
 						return true;
 					break;
 				case edit_sambausers_attributes:				case list_maillists:
-					if ($array_acl[acl_add_maillists] || $array_acl[acl_edit_maillists] || $array_acl[acl_delete_maillists])
-						return true;
-					break;
-
-					if ($array_acl[acl_edit_sambausers_attributes])
+					if ($array_acl['acl_add_maillists'] || $array_acl['acl_edit_maillists'] || $array_acl['acl_delete_maillists'])
+						return true;
+					break;
+
+					if ($array_acl['acl_edit_sambausers_attributes'])
 						return true;
 					break;
 				case edit_sambadomains:
-					if ($array_acl[acl_edit_sambadomains])
+					if ($array_acl['acl_edit_sambadomains'])
 						return true;
 					break;
 				
 				case list_groups:
-					if ($array_acl[acl_add_groups] || $array_acl[acl_edit_groups] || $array_acl[acl_delete_groups])
+					if ($array_acl['acl_add_groups'] || $array_acl['acl_edit_groups'] || $array_acl['acl_delete_groups'])
 						return true;
 					break;
 				case add_groups:
-					if ($array_acl[acl_add_groups])
+					if ($array_acl['acl_add_groups'])
 						return true;
 					break;
 				case edit_groups:
-					if ($array_acl[acl_edit_groups])
+					if ($array_acl['acl_edit_groups'])
 						return true;
 					break;
 				case delete_groups:
-					if ($array_acl[acl_delete_groups])
+					if ($array_acl['acl_delete_groups'])
 						return true;
 					break;
 				case edit_email_groups:
-					if ($array_acl[acl_edit_email_groups])
+					if ($array_acl['acl_edit_email_groups'])
 						return true;
 					break;
 				
 				case list_maillists:
-					if ($array_acl[acl_add_maillists] || $array_acl[acl_edit_maillists] || $array_acl[acl_delete_maillists])
+					if ($array_acl['acl_add_maillists'] || $array_acl['acl_edit_maillists'] || $array_acl['acl_delete_maillists'])
 						return true;
 					break;
 				case add_maillists:
-					if ($array_acl[acl_add_maillists])
+					if ($array_acl['acl_add_maillists'])
 						return true;
 					break;
 				case edit_maillists:
-					if ($array_acl[acl_edit_maillists])
+					if ($array_acl['acl_edit_maillists'])
 						return true;
 					break;
 				case delete_maillists:
-					if ($array_acl[acl_delete_maillists])
+					if ($array_acl['acl_delete_maillists'])
 						return true;
 					break;
 
 				case list_sectors:
-					if ($array_acl[acl_create_sectors] || $array_acl[acl_edit_sectors] || $array_acl[acl_delete_sectors])
+					if ($array_acl['acl_create_sectors'] || $array_acl['acl_edit_sectors'] || $array_acl['acl_delete_sectors'])
 						return true;
 					break;
 				case create_sectors:
-					if ($array_acl[acl_create_sectors])
+					if ($array_acl['acl_create_sectors'])
 						return true;
 					break;
 				case edit_sectors:
-					if ($array_acl[acl_edit_sectors])
+					if ($array_acl['acl_edit_sectors'])
 						return true;
 					break;
 				case delete_sectors:
-					if ($array_acl[acl_delete_sectors])
+					if ($array_acl['acl_delete_sectors'])
 						return true;
 					break;
 
 				case view_global_sessions:
-					if ($array_acl[acl_view_global_sessions])
+					if ($array_acl['acl_view_global_sessions'])
 						return true;
 					break;
 
 				case list_computers:
-					if ($array_acl[acl_create_computers] || $array_acl[acl_edit_computers] || $array_acl[acl_delete_computers])
+					if ($array_acl['acl_create_computers'] || $array_acl['acl_edit_computers'] || $array_acl['acl_delete_computers'])
 						return true;
 					break;
 				case create_computers:
-					if ($array_acl[acl_create_computers])
+					if ($array_acl['acl_create_computers'])
 						return true;
 					break;
 				case edit_computers:
-					if ($array_acl[acl_edit_computers])
+					if ($array_acl['acl_edit_computers'])
 						return true;
 					break;
 				case delete_computers:
-					if ($array_acl[acl_delete_computers])
+					if ($array_acl['acl_delete_computers'])
 						return true;
 					break;
 
 				case view_logs:
-					if ($array_acl[acl_view_logs])
+					if ($array_acl['acl_view_logs'])
 						return true;
 					break;
 			
 				case display_groups:
-					if ( $array_acl[acl_edit_users] || $array_acl[acl_view_users] || ($array_acl[acl_edit_sambausers_attributes] && ($this->current_config['expressoAdmin_samba_support'] == 'true')) )
+					if ( $array_acl['acl_edit_users'] || $array_acl['acl_view_users'] || ($array_acl['acl_edit_sambausers_attributes'] && ($this->current_config['expressoAdmin_samba_support'] == 'true')) )
 						return true;
 					break;
 				case display_emailconfig:
-					if ($array_acl[acl_edit_users] || $array_acl[acl_view_users])
+					if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users'])
 						return true;
 					break;
 				case display_applications:
-					if ($array_acl[acl_edit_users] || $array_acl[acl_view_users])
+					if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users'])
 						return true;
 					break;
 				case display_emaillists:
-					if ($array_acl[acl_edit_users] || $array_acl[acl_view_users])
+					if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users'])
 						return true;
 					break;
Index: trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
===================================================================
--- trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php	(revision 7673)
+++ trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php	(revision 7681)
@@ -382,5 +382,5 @@
 		if ($anchor != $dn)
 		{
-			if (!@ldap_rename($this->ldap, $params['anchor'], "uid=$params[uid]", $params['context'], true))
+			if (!@ldap_rename($this->ldap, $params['anchor'], "uid={$params['uid']}", $params['context'], true))
 			{
 				$result['status'] = false;
@@ -467,5 +467,5 @@
 				return $result;
 			}			                  
-			$dn = "uid=$params[uid]," . $params['context'];
+			$dn = "uid={$params['uid']}," . $params['context'];
                         $filter = "(mail=".$params['mail'].")";
 			$justthese = array("cn");
