Changeset 8236 for sandbox/2.5.1-evolucao
- Timestamp:
- 10/10/13 17:22:22 (10 years ago)
- Location:
- sandbox/2.5.1-evolucao/expressoAdmin1_2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/expressoAdmin1_2/controller.php
r8231 r8236 27 27 $array_files = array(); 28 28 for($idx = 1; $idx <= $count_files; ++$idx) { 29 if( $_FILES['file_'.$idx] && !$_FILES['file_'.$idx]['error'])29 if(isset($_FILES['file_'.$idx]) && $_FILES['file_'.$idx] && !$_FILES['file_'.$idx]['error']) 30 30 $array_files[] = $_FILES['file_'.$idx]; 31 31 } -
sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.db_functions.inc.php
r8231 r8236 238 238 $user_in_group[] = $this->db->row(); 239 239 240 if ( count($user_in_group) == 0)240 if (!isset($user_in_group) || count($user_in_group) == 0) 241 241 { 242 242 $sql = "INSERT INTO phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) " -
sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.group.inc.php
r5133 r8236 108 108 109 109 // ADD ATTRIBUTES 110 if ( $params['phpgwaccountvisible'] == 'on')110 if (isset($params['phpgwaccountvisible']) && $params['phpgwaccountvisible'] == 'on') 111 111 { 112 112 $group_info['phpgwaccountvisible'] = '-1'; -
sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r8235 r8236 990 990 $result['status'] = true; 991 991 992 if ( $_SESSION['phpgw_info']['expresso']['global_denied_groups'][$cn])992 if (isset($_SESSION['phpgw_info']['expresso']['global_denied_groups'][$cn]) && $_SESSION['phpgw_info']['expresso']['global_denied_groups'][$cn]) 993 993 { 994 994 $result['status'] = false; … … 1058 1058 $result['status'] = true; 1059 1059 1060 if ( $_SESSION['phpgw_info']['expresso']['global_denied_users'][$uid])1060 if (isset($_SESSION['phpgw_info']['expresso']['global_denied_users'][$uid]) && $_SESSION['phpgw_info']['expresso']['global_denied_users'][$uid]) 1061 1061 { 1062 1062 $result['status'] = false; … … 1874 1874 $sector_dn_array = explode(",", $entry[0]['dn']); 1875 1875 $sector_dn_array_count = count($sector_dn_array); 1876 $sector_dn = ''; 1876 1877 for($i=1; $i<$sector_dn_array_count; ++$i) 1877 1878 $sector_dn .= $sector_dn_array[$i] . ','; … … 1883 1884 $result['description'] = $entry[0]['description'][0]; 1884 1885 $result['gidnumber'] = $entry[0]['gidnumber'][0]; 1885 $result['phpgwaccountvisible'] = $entry[0]['phpgwaccountvisible'][0];1886 $result['phpgwaccountvisible'] = isset($entry[0]['phpgwaccountvisible']) ? $entry[0]['phpgwaccountvisible'][0] : ''; 1886 1887 $result['email'] = $entry[0]['mail'][0]; 1887 1888 … … 1938 1939 if ($entry[0]['objectclass'][$i] == 'sambaGroupMapping') 1939 1940 $result['sambaGroup'] = true; 1940 1941 $a_tmp = explode("-", $entry[0]['sambasid'][0]); 1942 array_pop($a_tmp); 1943 $result['sambasid'] = implode("-", $a_tmp); 1941 if (isset($entry[0]['sambasid'])){ 1942 $a_tmp = explode("-",$entry[0]['sambasid'][0]); 1943 array_pop($a_tmp); 1944 $result['sambasid'] = implode("-", $a_tmp); 1945 } 1944 1946 } 1945 1947 return $result; -
sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.maillist.inc.php
r585 r8236 98 98 $maillist_info['accountStatus'] = 'active'; 99 99 100 if ( $params['phpgwAccountVisible'] == 'on')100 if (isset($params['phpgwAccountVisible']) && $params['phpgwAccountVisible'] == 'on') 101 101 $maillist_info['phpgwAccountVisible'] = '-1'; 102 102 -
sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.user.inc.php
r7243 r8236 102 102 $user_info['userPassword'] = '{md5}' . base64_encode(pack("H*",md5($params['password1']))); 103 103 104 if ( $params['passwd_expired'] == '1')104 if (isset($params['passwd_expired']) && $params['passwd_expired'] == '1') 105 105 $user_info['phpgwLastPasswdChange'] = '0'; 106 106 … … 136 136 } 137 137 138 if ( $params['deliverymode'])138 if (isset($params['deliverymode']) && $params['deliverymode']) 139 139 $user_info['deliveryMode'] = 'forwardOnly'; 140 140 141 141 //Ocultar da pesquisa e do catálogo 142 if ( $params['phpgwaccountvisible'])142 if (isset($params['phpgwaccountvisible']) && $params['phpgwaccountvisible']) 143 143 $user_info['phpgwAccountVisible'] = '-1'; 144 144 … … 245 245 246 246 // Inclusao do Mail do usuário nas listas de email selecionadas. 247 if ( $params['maillists'])247 if (isset($params['maillists']) && $params['maillists']) 248 248 { 249 249 foreach($params['maillists'] as $uid)
Note: See TracChangeset
for help on using the changeset viewer.