patch 10 to fix missing table prefix
This commit is contained in:
parent
1278a1edd2
commit
e72101cdc1
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ if (!empty($_GET["action"])) {
|
|||
}
|
||||
else if ($action == "subscribe") {
|
||||
// ensure the current user can shop for that user first.
|
||||
$stmt = $smarty->dbh()->prepare("SELECT pending FROM shoppers WHERE shopper = ? AND mayshopfor = ?");
|
||||
$stmt = $smarty->dbh()->prepare("SELECT pending FROM {$opt["table_prefix"]}shoppers WHERE shopper = ? AND mayshopfor = ?");
|
||||
$stmt->bindParam(1, $userid, PDO::PARAM_INT);
|
||||
$stmt->bindValue(2, (int) $_GET["shoppee"], PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
|
|
Loading…
Add table
Reference in a new issue