--- userpoints_expire.module	Sun Oct 14 12:32:56 2007
+++ userpoints_expire_new.module	Sun Jun 01 14:15:30 2008
@@ -58,9 +58,9 @@
     // Take the negative value of the points
-	  $points = variable_get(USERPOINTS_EXPIRE_POINTS, 0);
-	  $period = variable_get(USERPOINTS_EXPIRE_PERIOD, 0);
+    $points = variable_get(USERPOINTS_EXPIRE_POINTS, 0);
+    $period = variable_get(USERPOINTS_EXPIRE_PERIOD, 0);
 
     // This may be an expensive query on sites with a large number of users and transactions
-	  $result = db_query("SELECT DISTINCT(up.uid)
+    $result = db_query("SELECT DISTINCT(up.uid)
       FROM {userpoints} up INNER JOIN {userpoints_txn} upt USING(uid)
-      WHERE upt.event <> 'expire' 
+      WHERE upt.operation <> 'expire' 
       AND up.points > 0
@@ -68,3 +68,3 @@
 
-	  while($data = db_fetch_object($result)) {
+    while($data = db_fetch_object($result)) {
       $params = array(
@@ -75,3 +75,3 @@
       userpoints_userpointsapi($params);
-	  }
+    }
   }
