Skip to content

Commit 9ec543e

Browse files
committed
Use Database::prepare() instead of Database::prepareStatement()
see #6002
1 parent 3276a17 commit 9ec543e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ public function save()
275275
// articles
276276
$conditions = new PreparedStatementConditionBuilder();
277277
$conditions->add("userID IN (?)", [$this->mergedUserIDs]);
278-
$sql = "UPDATE wcf" . WCF_N . "_article
278+
$sql = "UPDATE wcf1_article
279279
SET userID = ?
280280
" . $conditions;
281-
$statement = WCF::getDB()->prepareStatement($sql);
281+
$statement = WCF::getDB()->prepare($sql);
282282
$statement->execute(\array_merge([$this->destinationUserID], $conditions->getParameters()));
283283

284284
// delete merged users

0 commit comments

Comments
 (0)