Skip to content

Commit e0cf0db

Browse files
Merge pull request #3089 from nextcloud/backport/3088/stable34
[stable34] fix(webpush): Don't reuse query object for second query
2 parents 413af4a + bb975a7 commit e0cf0db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Controller/WebPushController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ protected function activateSubscription(IUser $user, IToken|ISession $token, str
298298
if ($row['activated']) {
299299
return ActivationSubStatus::OK;
300300
}
301+
302+
$query = $this->db->getQueryBuilder();
301303
$query->update('notifications_webpush')
302304
->set('activated', $query->createNamedParameter(true))
303305
->where($query->expr()->eq('uid', $query->createNamedParameter($user->getUID())))

0 commit comments

Comments
 (0)