I got this message on 2 different sites, one is a clean drupal 7 install (no other modules)

Fatal error: Call to undefined function db_result() in /var/www/drupal7/sites/all/modules/inactive_user/inactive_user.module on line 445

CommentFileSizeAuthor
#3 _inactive_user_admin_mail-1028270.patch591 bytesesod

Comments

Crell’s picture

That's because db_result() no longer exists in Drupal 7. The D7 port of this module looks to be far from complete. It's a dev release, after all. :-)

I'd recommend not trying this module on D7 until there is a tagged release.

BenK’s picture

Subscribing to keep track of this thread.

esod’s picture

Status: Active » Needs review
StatusFileSize
new591 bytes

I think this is better. Gets things moving again anyway.

/**
 * Get administrator e-mail address(es)
 */
function _inactive_user_admin_mail() {
  $uid = 1;
  $admin_mail = db_query('SELECT mail FROM {users} WHERE uid = :uid', array(':uid' => $uid));
  return variable_get('inactive_user_admin_email', variable_get('site_mail', $admin_mail));
}

Patch attached.

deekayen’s picture

Status: Needs review » Fixed

Committed

Status: Fixed » Closed (fixed)

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