mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
Siwtch to use an object for the updated users row.
This commit is contained in:
parent
4e9c3dedc5
commit
a577a44a51
@ -343,9 +343,9 @@ function sync_LDAP(){
|
|||||||
}
|
}
|
||||||
$qry = new AwlQuery( "SELECT username, user_no, updated FROM usr ");
|
$qry = new AwlQuery( "SELECT username, user_no, updated FROM usr ");
|
||||||
$qry->Exec('sync_LDAP',__LINE__,__FILE__);
|
$qry->Exec('sync_LDAP',__LINE__,__FILE__);
|
||||||
while($db_user = $qry->Fetch(true)){
|
while($db_user = $qry->Fetch()) {
|
||||||
$db_users[] = $db_user['username'];
|
$db_users[] = $db_user->username;
|
||||||
$db_users_info[$db_user['username']] = array('user_no' => $db_user['user_no'], 'updated' => $db_user['updated']);
|
$db_users_info[$db_user->username] = array('user_no' => $db_user->user_no, 'updated' => $db_user->updated);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ldap_users = array_keys($ldap_users_info);
|
$ldap_users = array_keys($ldap_users_info);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user