Changeset 7769 for trunk/expressoAdmin1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 01/18/13 16:47:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.imap_functions.inc.php
r7552 r7769 321 321 $result['msg'] = $this->functions->lang('Error on function') . ' imap_functions->setaclfrombox: imap_setacl'; 322 322 $result['msg'] .= "\n" . $this->functions->lang('Server return') . ': ' . imap_last_error(); 323 break;323 // break; 324 324 } 325 325 } … … 384 384 return $result; 385 385 } 386 387 if(count($owners_to_remove) > 0) 388 { 389 foreach($owners_to_remove as $user => $acl) 390 { 391 $this->functions->write_log("User removed from the shared account",'USER: '.$user.' - SHARED ACCOUNT: '.$params['uid']); 392 } 393 } 394 if(count($owners_to_add) > 0) 395 { 396 foreach($owners_to_add as $user => $acl) 397 { 398 $this->functions->write_log("User added from the shared account",'USER: '.$user.' - SHARED ACCOUNT: '.$params['uid']); 399 } 400 } 401 386 402 //file_put_contents("/tmp/saida", "old ".print_r($owners_acl_old, true)."remove ".print_r($owners_to_remove, true)."add ".print_r($owners_to_add, true)."update ".print_r($owners_to_update, true)); 387 403 if( is_array($owners_acl_new)){ … … 442 458 require_once('class.ldap_functions.inc.php'); 443 459 444 if( !$ldap )445 {460 // if( !$ldap ) 461 // { 446 462 $ldap = new ldap_functions(); 447 }463 // } 448 464 449 465 $to = $ldap->uid2mailforwardingaddress( $user ); … … 468 484 $keys = array_keys( $tpls ); 469 485 470 if( !array_diff_key( $tpl , array_keys( $keys ) ) )486 if( !array_diff_key( $tpls, array_keys( $keys ) ) ) 471 487 { 472 488 $newTpls = array();
Note: See TracChangeset
for help on using the changeset viewer.