missed a couple of calls here, should have a type for each non-float bound parameter
This commit is contained in:
parent
246232f0a3
commit
137d715568
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -187,7 +187,7 @@ if (!empty($_REQUEST["action"])) {
|
|||
$stmt->bindParam(8, $comment, PDO::PARAM_STR);
|
||||
$stmt->bindParam(9, $quantity, PDO::PARAM_INT);
|
||||
if ($image_base_filename != "") {
|
||||
$stmt->bindParam(10, $image_base_filename);
|
||||
$stmt->bindParam(10, $image_base_filename, PDO::PARAM_STR);
|
||||
}
|
||||
$stmt->execute();
|
||||
|
||||
|
@ -221,7 +221,7 @@ if (!empty($_REQUEST["action"])) {
|
|||
$stmt->bindParam(8, $comment, PDO::PARAM_STR);
|
||||
$stmt->bindParam(9, $quantity, PDO::PARAM_INT);
|
||||
if ($image_base_filename != "") {
|
||||
$stmt->bindParam(10, $image_base_filename);
|
||||
$stmt->bindParam(10, $image_base_filename, PDO::PARAM_STR);
|
||||
$stmt->bindParam(11, (int) $_REQUEST["itemid"], PDO::PARAM_INT);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue