diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-02-12 12:00:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 12:00:39 +0100 |
commit | 647c5829aa901deec32f4b53aede66b4403fdae8 (patch) | |
tree | d98c79d70de6127e6aeb90c75d7f3dafc8365cca | |
parent | 167a78ff54e8ef86959e24c844bba6fc7ae09be2 (diff) | |
download | nextcloud-server-removeTrailingComma.tar.gz nextcloud-server-removeTrailingComma.zip |
fix(webhook_listener): Remove trailing commaremoveTrailingComma
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r-- | apps/webhook_listeners/lib/Db/WebhookListenerMapper.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php b/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php index 75456cc0b75..617f38906cc 100644 --- a/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php +++ b/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php @@ -227,14 +227,13 @@ class WebhookListenerMapper extends QBMapper { ->from($this->getTableName()) ->where($qb->expr()->eq('event', $qb->createNamedParameter($event, IQueryBuilder::PARAM_STR))); - if ($userId === '' || $userId === null) { $qb->andWhere($qb->expr()->emptyString('user_id_filter')); } else { $qb->andWhere( $qb->expr()->orX( $qb->expr()->emptyString('user_id_filter'), - $qb->expr()->eq('user_id_filter', $qb->createNamedParameter($userId)), + $qb->expr()->eq('user_id_filter', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_STR)) ) ); } |