Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Factory/LayoutFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2582,6 +2582,9 @@
foreach ($this->getStore()->select($sql, []) as $row) {
$campaignIds[] = $row['CampaignID'];
}
if (count($campaignIds) === 0) {
$campaignIds[] = "NULL";

Check failure on line 2586 in lib/Factory/LayoutFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

String "NULL" does not require double quotes; use single quotes instead
}

$body .= ' AND campaign.CampaignID NOT IN ( ' . implode(',', array_filter($campaignIds)) . ' )
AND layout.layoutID NOT IN (SELECT DISTINCT defaultlayoutid FROM display)
Expand Down
Loading