diff --git a/lib/Db/BoardMapper.php b/lib/Db/BoardMapper.php index fc5455ef4..aea517e3b 100644 --- a/lib/Db/BoardMapper.php +++ b/lib/Db/BoardMapper.php @@ -486,8 +486,8 @@ public function transferOwnership($ownerId, $newOwnerId) { 'owner' => $ownerId, 'newOwner' => $newOwnerId ]; - $sql = "UPDATE `{$this->tableName}` SET `owner` = :newOwner WHERE `owner` = :owner"; - $stmt = $this->execute($sql, $params); + $sql = "UPDATE `*PREFIX*{$this->tableName}` SET `owner` = :newOwner WHERE `owner` = :owner"; + $stmt = $this->db->executeQuery($sql, $params); $stmt->closeCursor(); } }