- Timestamp:
- 10/10/13 11:39:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r8234 r8235 10 10 \**************************************************************************/ 11 11 12 define('PHPGW_INCLUDE_ROOT','../');13 define('PHPGW_API_INC','../phpgwapi/inc');12 if (!defined('PHPGW_INCLUDE_ROOT')) define('PHPGW_INCLUDE_ROOT','../'); 13 if (!defined('PHPGW_API_INC')) define('PHPGW_API_INC','../phpgwapi/inc'); 14 14 include_once(PHPGW_API_INC.'/class.common.inc.php'); 15 15 include_once('class.functions.inc.php'); … … 178 178 $info['accountStatus'] = 'active'; 179 179 } 180 if ( $params['phpgwAccountVisible'] == 'on')180 if (isset($params['phpgwAccountVisible']) && $params['phpgwAccountVisible'] == 'on') 181 181 { 182 182 $info['phpgwAccountVisible'] = '-1'; … … 556 556 $info['accountStatus'] = 'active'; 557 557 } 558 if ( $params['phpgwAccountVisible'] == 'on')558 if ( isset($params['phpgwAccountVisible']) && ($params['phpgwAccountVisible'] == 'on') ) 559 559 { 560 560 $info['phpgwAccountVisible'] = '-1'; … … 2718 2718 $return['status'] = 'true'; 2719 2719 $return['accountStatus'] = $entrie[0]['accountstatus'][0]; 2720 $return['phpgwAccountVisible'] = $entrie[0]['phpgwaccountvisible'][0];2720 $return['phpgwAccountVisible'] = isset($entrie[0]['phpgwaccountvisible']) ? $entrie[0]['phpgwaccountvisible'][0] : ''; 2721 2721 $return['cn'] = utf8_decode($entrie[0]['cn'][0]); 2722 2722 $return['mail'] = $entrie[0]['mail'][0]; … … 2734 2734 } 2735 2735 natcasesort($a_cn); 2736 $return['owners'] = ''; 2736 2737 foreach($a_cn as $uidnumber => $cn) 2737 2738 {
Note: See TracChangeset
for help on using the changeset viewer.