Use nextParameter instead of addParameter and manually counting where possible.
This commit is contained in:
parent
d3f9c299af
commit
7d710e2d02
26 changed files with 490 additions and 554 deletions
public-legacy/settings
|
@ -54,7 +54,7 @@ function db_to_zip(
|
|||
|
||||
try {
|
||||
$stmt = $dbConn->prepare(sprintf('SELECT %s FROM msz_%s WHERE %s = ?', implode(', ', $fields), $baseName, $userIdField));
|
||||
$stmt->addParameter(1, $userId);
|
||||
$stmt->nextParameter($userId);
|
||||
$stmt->execute();
|
||||
$result = $stmt->getResult();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue