? .cvsignore
? fix_tests.patch
? fix_unapproved.patch
? php53_fix.patch
Index: userpoints.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/userpoints/userpoints.module,v
retrieving revision 1.67.2.61
diff -u -p -r1.67.2.61 userpoints.module
--- userpoints.module	15 Jul 2010 21:52:34 -0000	1.67.2.61
+++ userpoints.module	9 Sep 2010 18:04:48 -0000
@@ -1712,13 +1712,7 @@ function userpoints_list_my_userpoints()
   $args['approved_total'] = $grand_total;
 
   //Grab the unmoderated point total
-  $result = db_query("SELECT SUM(points) FROM {userpoints_txn} WHERE uid = %d AND status = 1", $uid);
-  if (db_result($result, 0, 0)) {
-    $args['unapproved_total'] = db_result($result, 0, 0);
-  }
-  else {
-    $args['unapproved_total'] =0;
-  }
+  $args['unapproved_total'] = (int)db_result(db_query("SELECT SUM(points) FROM {userpoints_txn} WHERE uid = %d AND status = 1", $uid));
   $args['overall_total'] = ($args['approved_total'] + $args['unapproved_total']);
 
   $header = array(
