This patch removes the last db_result call in the D7 code. It's applied to a codebase that is also patched with #1060980: Drupal 7 port fixall patch, comment #1.

CommentFileSizeAuthor
#1 invite-1063032.patch688 byteshadsie

Comments

hadsie’s picture

StatusFileSize
new688 bytes
nikkubhai’s picture

I too got the error.
Fatal error: Call to undefined function db_result() in C:\wamp\www\drupal\sites\all\modules\invite\invite.module on line 477

tebb’s picture

@nikkubhai

You need to apply the patch in #1 to the module.

Or

You can make this change to file invite.module

Replace:

    $code = db_result(db_query("SELECT reg_code FROM {invite} WHERE email = :reg_code", array(':reg_code' => $account->mail)));

With:

    $code = db_query("SELECT reg_code FROM {invite} WHERE email = :reg_code", array(':reg_code' => $account->mail))->fetchField();
     if ($code) {
       $invite = invite_load($code);
     }
smk-ka’s picture

Status: Needs review » Fixed

Thanks! Committed to master.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.