From a577a44a51ecfe647befafff624c5b5c565cd27b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 18 Mar 2010 23:08:00 +1300 Subject: [PATCH] Siwtch to use an object for the updated users row. --- inc/drivers_ldap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index 473d6cb7..2f497ed8 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -343,9 +343,9 @@ function sync_LDAP(){ } $qry = new AwlQuery( "SELECT username, user_no, updated FROM usr "); $qry->Exec('sync_LDAP',__LINE__,__FILE__); - while($db_user = $qry->Fetch(true)){ - $db_users[] = $db_user['username']; - $db_users_info[$db_user['username']] = array('user_no' => $db_user['user_no'], 'updated' => $db_user['updated']); + while($db_user = $qry->Fetch()) { + $db_users[] = $db_user->username; + $db_users_info[$db_user->username] = array('user_no' => $db_user->user_no, 'updated' => $db_user->updated); } $ldap_users = array_keys($ldap_users_info);