[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/accounts class.accounts_ldap.inc.php
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/accounts class.accounts_ldap.inc.php |
Date: |
Mon, 25 Sep 2006 14:10:04 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Caeies <Caeies> 06/09/25 14:10:04
Modified files:
inc/accounts : class.accounts_ldap.inc.php
Log message:
Small E_ALL fixes
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/accounts/class.accounts_ldap.inc.php?cvsroot=phpgwapi&r1=1.12&r2=1.13
Patches:
Index: class.accounts_ldap.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/accounts/class.accounts_ldap.inc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- class.accounts_ldap.inc.php 9 Sep 2006 11:38:24 -0000 1.12
+++ class.accounts_ldap.inc.php 25 Sep 2006 14:10:04 -0000 1.13
@@ -11,7 +11,7 @@
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage accounts
- * @version $Id: class.accounts_ldap.inc.php,v 1.12 2006/09/09 11:38:24
skwashd Exp $
+ * @version $Id: class.accounts_ldap.inc.php,v 1.13 2006/09/25 14:10:04
Caeies Exp $
*/
/**
@@ -117,8 +117,8 @@
{
$this->account_id =
$this->data['account_id'] = $entries[0]['uidnumber'][0];
$this->lid =
$this->data['account_lid'] = $entries[0]['uid'][0];
- $this->firstname =
$this->data['account_firstname'] = $entries[0]['givenname'][0];
- $this->lastname =
$this->data['account_lastname'] = $entries[0]['sn'][0];
+ $this->firstname =
$this->data['account_firstname'] = (isset($entries[0]['givenname']) &&
isset($entries[0]['givenname'][0])) ? $entries[0]['givenname'][0] : '';
+ $this->lastname =
$this->data['account_lastname'] = (isset($entries[0]['sn']) &&
isset($entries[0]['sn'][0])) ? $entries[0]['sn'][0] : '';
$this->expires =
$this->data['expires'] = $this->data['account_expires'] =
$entries[0]['phpgwaccountexpires'][0];
$this->data['homedirectory'] =
isset($entries[0]['homedirectory']) ? $entries[0]['homedirectory'][0] :
$this->fallback_homedirectory;
$this->data['loginshell'] =
isset($entries[0]['loginshell']) ? $entries[0]['loginshell'][0] :
$this->fallback_loginshell;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/accounts class.accounts_ldap.inc.php,
Caeies <=