- Timestamp:
- 10/10/13 17:22:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.