mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-19 01:34:26 +00:00
Fix SQL fieldname.
This commit is contained in:
parent
274f8dfa74
commit
8255f23256
@ -519,7 +519,7 @@ function sync_LDAP_groups(){
|
||||
if ( sizeof ( $groups_to_deactivate ) ){
|
||||
$c->messages[] = sprintf(i18n('- deactivate groups : %s'),join(', ',$groups_to_deactivate));
|
||||
foreach ( $groups_to_deactivate as $group ){
|
||||
$qry = new AwlQuery( 'UPDATE dav_principal set active=FALSE WHERE username=:group AND type_id = 3',array(':group'=>$group) );
|
||||
$qry = new AwlQuery( 'UPDATE dav_principal SET user_active=FALSE WHERE username=:group AND type_id = 3',array(':group'=>$group) );
|
||||
$qry->Exec('sync_LDAP',__LINE__,__FILE__);
|
||||
Principal::cacheFlush('username=:group AND type_id = 3', array(':group'=>$group) );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user