Index: ldapsync.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ldap_integration/ldapsync.module,v
retrieving revision 1.1
diff -u -p -r1.1 ldapsync.module
--- ldapsync.module	25 Mar 2010 11:00:16 -0000	1.1
+++ ldapsync.module	26 Oct 2010 20:45:51 -0000
@@ -133,7 +133,7 @@ function _ldapsync_sync() {
     
     // Enable any blocked user who is enabled in LDAP.
     if (!$account->status) {
-      db_query("UPDATE {users} SET status = %d where uid = %", 1, $account->uid);
+      db_query("UPDATE {users} SET status = %d where uid = %d", 1, $account->uid);
       watchdog('ldapsync', 'Enabled LDAP-authentified user %name because the corresponding LDAP account is enabled.', array('%name' => $row['name']));
     }
   }
