Use nextParameter instead of addParameter and manually counting where possible.

This commit is contained in:
flash 2024-12-19 02:23:05 +00:00
parent d3f9c299af
commit 7d710e2d02
26 changed files with 490 additions and 554 deletions
public-legacy/settings

View file

@ -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();