Skip to content

Fix sqlerror with empty CampaignID#3282

Open
movisda wants to merge 1 commit intoxibosignage:developfrom
movisda:sqlerror-empty-CampaignID
Open

Fix sqlerror with empty CampaignID#3282
movisda wants to merge 1 commit intoxibosignage:developfrom
movisda:sqlerror-empty-CampaignID

Conversation

@movisda
Copy link
Contributor

@movisda movisda commented Feb 16, 2026

This PR fixes issue 3819.

Triggered by the XTR cronjob we get all 5 minutes an sqli error message in the log:

run: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND layout.layoutID NOT IN (SELECT DISTINCT defaultl...' at line 38 Exception Type: PDOException

It is caused by an empty list ` AND campaign.CampaignID NOT IN ( )`.

Fix it by adding NULL to the empty list.
@dasgarner dasgarner requested a review from mgbaybay February 16, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant