mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Minor formatting
This commit is contained in:
parent
7b96d56609
commit
e3fbe2fd7a
@ -167,8 +167,14 @@
|
||||
Changing the uid: Need to delete and add new, since
|
||||
PHP cannot change the dn for the entry.
|
||||
*/
|
||||
if ($acct_type == 'g') { $test = $allValues[0]['cn'][0]; }
|
||||
else { $test = $allValues[0]['uid'][0]; }
|
||||
if ($acct_type == 'g')
|
||||
{
|
||||
$test = $allValues[0]['cn'][0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$test = $allValues[0]['uid'][0];
|
||||
}
|
||||
if ($test != $this->data['account_lid'])
|
||||
{
|
||||
ldap_delete($ds,$allValues[0]['dn']);
|
||||
@ -182,13 +188,19 @@
|
||||
{
|
||||
if (count($val) == 1)
|
||||
{
|
||||
if($val[0]) { $entry[$key] = $val[0]; }
|
||||
if($val[0])
|
||||
{
|
||||
$entry[$key] = $val[0];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0;$i<count($val);$i++)
|
||||
{
|
||||
if($val[$i]) { $entry[$key][$i] = $val[$i]; }
|
||||
if($val[$i])
|
||||
{
|
||||
$entry[$key][$i] = $val[$i];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -692,7 +704,7 @@
|
||||
{
|
||||
return False;
|
||||
|
||||
global $phpgw, $phpgw_info;
|
||||
global $phpgw;
|
||||
|
||||
if (! $expiredate)
|
||||
{
|
||||
@ -736,7 +748,7 @@
|
||||
|
||||
function getDNforID($_accountid = '')
|
||||
{
|
||||
global $phpgw;
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
$_account_id = get_account_id($_accountid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user