e107_handlers/mail_template_class.php
Assigning array<string>|array{email_body:mixed,email_overrides:'',email_header:'',email_footer:'',email_plainText:''}|array{email_overrides:'',email_header:'',email_body:'',email_footer:'',email_plainText:''}</string>
to property but \e107MailTemplate->lastTemplateData
is false
Open
Open
$this->lastTemplateData = $ret;
- Exclude checks
Assigning ''
to property but \e107MailTemplate->altBodyText
is false
Open
Open
$this->altBodyText = '';
- Exclude checks
Suspicious array access to false
Open
Open
$this->altBodyText = $tp->parseTemplate(str_replace('{BODY}', $text, $this->lastTemplateData['email_plainText']), TRUE);
- Exclude checks
Assigning array
to property but \e107MailTemplate->lastTemplateData
is false
Open
Open
$this->lastTemplateData = $newTemplate;
- Exclude checks
Suspicious array access to false
Open
Open
$mailFooter = $tp->parseTemplate($this->lastTemplateData['email_footer'], TRUE);
- Exclude checks
Argument 3 (subject)
is ?string
but \str_replace()
takes array|string
Open
Open
$mailBody = str_replace("src='".e_HTTP, "src='".SITEURL, $mailBody);
- Exclude checks
Assigning string
to property but \e107MailTemplate->mainBodyText
is false
Open
Open
$this->mainBodyText = $temp;
- Exclude checks
Suspicious array access to false
Open
Open
if ($this->lastTemplateData['email_plainText'])
- Exclude checks
Suspicious array access to false
Open
Open
if ($this->lastTemplateData['template_name'] == $templateName)
- Exclude checks
Suspicious array access to false
Open
Open
$mailBody = $tp->parseTemplate(str_replace('{BODY}', $text, $this->lastTemplateData['email_body']), TRUE);
- Exclude checks
Suspicious array access to false
Open
Open
$this->lastTemplateData['template_name'] = $templateName; // Cache template
- Exclude checks
Suspicious array access to false
Open
Open
$format = $this->lastTemplateData['template_name'];
- Exclude checks
Assigning array<string></string>
to property but \e107MailTemplate->lastTemplateData
is false
Open
Open
$this->lastTemplateData['template_name'] = $templateName; // Cache template
- Exclude checks
Assigning ?string|?string[]
to property but \e107MailTemplate->mainBodyText
is false
Open
Open
$this->mainBodyText = $mailBody;
- Exclude checks
Assigning ''
to property but \e107MailTemplate->altBodyText
is false
Open
Open
$this->altBodyText = '';
- Exclude checks
Assigning string
to property but \e107MailTemplate->altBodyText
is false
Open
Open
$this->altBodyText = $tp->parseTemplate(str_replace('{BODY}', $text, $this->lastTemplateData['email_plainText']), TRUE);
- Exclude checks
Default value for string
$extraFile
can't be false
Open
Open
public function loadTemplateInfo($templateName, $extraFile = FALSE)
- Exclude checks
Suspicious array access to false
Open
Open
$mailHeader = $tp->parseTemplate($this->lastTemplateData['email_header'], TRUE);
- Exclude checks