missed a couple of calls here, should have a type for each non-float bound parameter

This commit is contained in:
Ryan Walberg 2012-11-22 04:42:23 +00:00
parent 246232f0a3
commit 137d715568
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ if (isset($_POST["action"]) && $_POST["action"] == "forgot") {
else {
$pwd = generatePassword($opt);
$stmt = $smarty->dbh()->prepare("UPDATE {$opt["table_prefix"]}users SET password = {$opt["password_hasher"]}(?) WHERE username = ?");
$stmt->bindParam(1, $pwd, PDO:PARAM_STR);
$stmt->bindParam(1, $pwd, PDO::PARAM_STR);
$stmt->bindParam(2, $username, PDO::PARAM_STR);
$stmt->execute();