Ignore:
Timestamp:
10/10/13 11:39:53 (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

    r8234 r8235  
    1010                \**************************************************************************/  
    1111                 
    12 define('PHPGW_INCLUDE_ROOT','../'); 
    13 define('PHPGW_API_INC','../phpgwapi/inc');       
     12if (!defined('PHPGW_INCLUDE_ROOT')) define('PHPGW_INCLUDE_ROOT','../'); 
     13if (!defined('PHPGW_API_INC')) define('PHPGW_API_INC','../phpgwapi/inc');        
    1414include_once(PHPGW_API_INC.'/class.common.inc.php'); 
    1515include_once('class.functions.inc.php'); 
     
    178178                        $info['accountStatus'] = 'active'; 
    179179                } 
    180                 if ($params['phpgwAccountVisible'] == 'on') 
     180                if (isset($params['phpgwAccountVisible']) && $params['phpgwAccountVisible'] == 'on') 
    181181                { 
    182182                        $info['phpgwAccountVisible'] = '-1'; 
     
    556556                                $info['accountStatus'] = 'active'; 
    557557                        } 
    558                         if ($params['phpgwAccountVisible'] == 'on') 
     558                        if ( isset($params['phpgwAccountVisible']) && ($params['phpgwAccountVisible'] == 'on') ) 
    559559                        { 
    560560                                $info['phpgwAccountVisible'] = '-1'; 
     
    27182718                        $return['status'] = 'true'; 
    27192719                        $return['accountStatus']                = $entrie[0]['accountstatus'][0]; 
    2720                         $return['phpgwAccountVisible']  = $entrie[0]['phpgwaccountvisible'][0]; 
     2720                        $return['phpgwAccountVisible']  = isset($entrie[0]['phpgwaccountvisible']) ? $entrie[0]['phpgwaccountvisible'][0] : ''; 
    27212721                        $return['cn']                                   = utf8_decode($entrie[0]['cn'][0]); 
    27222722                        $return['mail']                                 = $entrie[0]['mail'][0]; 
     
    27342734                                } 
    27352735                                natcasesort($a_cn); 
     2736                                $return['owners'] = ''; 
    27362737                                foreach($a_cn as $uidnumber => $cn) 
    27372738                                { 
Note: See TracChangeset for help on using the changeset viewer.