Skip to content

Commit

Permalink
fix: Do not reuse query builder
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliushaertl committed Aug 31, 2023
1 parent 2f90ef5 commit 9241a93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TemplateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ public function getTemplateSource(int $fileId): ?File {
$result = $query->executeQuery();
$templateId = (int)$result->fetchOne();

$query = $this->db->getQueryBuilder();
$query->delete('richdocuments_template')
->where($query->expr()->eq('userid', $query->createNamedParameter($this->userId)))
->andWhere($query->expr()->eq('fileid', $query->createNamedParameter($fileId, IQueryBuilder::PARAM_INT)));
Expand Down

0 comments on commit 9241a93

Please sign in to comment.