When deleting a user from the system, the following error is logged:

Type php
Date Thursday, June 28, 2007 - 07:39
User administrator
Location http://www.bitsift.com/user/36/delete
Referrer http://www.bitsift.com/user/36/delete
Message mysql_num_rows(): supplied argument is not a valid MySQL result resource in
[website path]/modules/userpoints/contrib/userpoints_invite/userpoints_invite.module on line 93.
Severity error

Comments

kbahey’s picture

Status: Active » Postponed (maintainer needs more info)

Try changing that line and the line following it to:

if (db_num_rows($result) > 0) {
  $uid = db_result($result, 0, 0);

i.e., instead of mysql_num_rows use db_num_rows, and instead of mysql_result use db_result.

If that works, I will fix the module.

jredding’s picture

Component: Code: userpoints_invite.module » Code: userpoints_invite
Status: Postponed (maintainer needs more info) » Fixed

patch posted. fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)
jredding’s picture

Project: User Points » User Points Contributed modules
Version: 5.x-2.10 » 5.x-2.x-dev