Minor formatting

This commit is contained in:
Miles Lott 2001-07-27 10:16:54 +00:00
parent 7b96d56609
commit e3fbe2fd7a

View File

@ -167,8 +167,14 @@
Changing the uid: Need to delete and add new, since Changing the uid: Need to delete and add new, since
PHP cannot change the dn for the entry. PHP cannot change the dn for the entry.
*/ */
if ($acct_type == 'g') { $test = $allValues[0]['cn'][0]; } if ($acct_type == 'g')
else { $test = $allValues[0]['uid'][0]; } {
$test = $allValues[0]['cn'][0];
}
else
{
$test = $allValues[0]['uid'][0];
}
if ($test != $this->data['account_lid']) if ($test != $this->data['account_lid'])
{ {
ldap_delete($ds,$allValues[0]['dn']); ldap_delete($ds,$allValues[0]['dn']);
@ -182,13 +188,19 @@
{ {
if (count($val) == 1) if (count($val) == 1)
{ {
if($val[0]) { $entry[$key] = $val[0]; } if($val[0])
{
$entry[$key] = $val[0];
}
} }
else else
{ {
for ($i=0;$i<count($val);$i++) 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; return False;
global $phpgw, $phpgw_info; global $phpgw;
if (! $expiredate) if (! $expiredate)
{ {
@ -736,7 +748,7 @@
function getDNforID($_accountid = '') function getDNforID($_accountid = '')
{ {
global $phpgw; global $phpgw, $phpgw_info;
$_account_id = get_account_id($_accountid); $_account_id = get_account_id($_accountid);