Fix HEREDOC syntax error in EmailTemplates
Cannot use ternary operator directly in HEREDOC string. Moved conditional logic outside HEREDOC into variable first. This fixes the parse error on line 203. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
96c27a1b77
commit
5158db0534
1 changed files with 5 additions and 1 deletions
|
|
@ -193,6 +193,10 @@ HTML;
|
|||
* Global to Local - Processing Failed
|
||||
*/
|
||||
public static function globalToLocalFailed($data) {
|
||||
$campaignNumberLine = isset($data['campaign_number']) && $data['campaign_number']
|
||||
? "<p><strong>Campaign Number:</strong> {$data['campaign_number']}</p>"
|
||||
: '';
|
||||
|
||||
$content = <<<HTML
|
||||
<div class="error-box">
|
||||
<p><strong>❌ CSV Processing Failed</strong></p>
|
||||
|
|
@ -200,7 +204,7 @@ HTML;
|
|||
|
||||
<div class="info-box">
|
||||
<p><strong>File:</strong> <code>{$data['filename']}</code></p>
|
||||
{$data['campaign_number'] ? "<p><strong>Campaign Number:</strong> {$data['campaign_number']}</p>" : ''}
|
||||
{$campaignNumberLine}
|
||||
</div>
|
||||
|
||||
<h3>Error Details:</h3>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue