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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | password_policy-still_using_d6_db_api-1415416-1.patch | 781 bytes | erikwebb |
Comments
Comment #1
erikwebb commentedComment #2
erikwebb commentedFixed and committed.
http://drupalcode.org/project/password_policy.git/commit/2a04724