This causes a major error during registration.

To fix, change line 342 to & 343 from:

      $result = db_query_range("SELECT * FROM {password_policy_history} WHERE uid = %d ORDER BY created DESC", $account->uid, 0, 1);
      if ($row = db_fetch_object($result)) {

to:

      $result = db_query_range("SELECT * FROM {password_policy_history} WHERE uid = :uid ORDER BY created DESC", 0, 1, array(':uid' => $account->uid));
      if ($row = $result->fetchObject()) {

I can submit a patch later if need be.

Comments

erikwebb’s picture

Status: Active » Needs review
StatusFileSize
new781 bytes
erikwebb’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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