Ignore:
Timestamp:
10/10/13 17:22:22 (10 years ago)
Author:
angelo
Message:

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r8235 r8236  
    990990                $result['status'] = true; 
    991991                 
    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]) 
    993993                { 
    994994                        $result['status'] = false; 
     
    10581058                $result['status'] = true; 
    10591059                 
    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]) 
    10611061                { 
    10621062                        $result['status'] = false; 
     
    18741874                                $sector_dn_array = explode(",", $entry[0]['dn']); 
    18751875                $sector_dn_array_count = count($sector_dn_array); 
     1876                                $sector_dn = ''; 
    18761877                                for($i=1; $i<$sector_dn_array_count; ++$i) 
    18771878                                        $sector_dn .= $sector_dn_array[$i] . ','; 
     
    18831884                                $result['description']                  = $entry[0]['description'][0]; 
    18841885                                $result['gidnumber']                    = $entry[0]['gidnumber'][0]; 
    1885                                 $result['phpgwaccountvisible']  = $entry[0]['phpgwaccountvisible'][0]; 
     1886                                $result['phpgwaccountvisible']  = isset($entry[0]['phpgwaccountvisible']) ? $entry[0]['phpgwaccountvisible'][0] : ''; 
    18861887                                $result['email']                                = $entry[0]['mail'][0]; 
    18871888                 
     
    19381939                                        if ($entry[0]['objectclass'][$i] == 'sambaGroupMapping') 
    19391940                                                $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                                        } 
    19441946                                } 
    19451947                                return $result; 
Note: See TracChangeset for help on using the changeset viewer.