Skip to content

Commit

Permalink
Undefined array key 0 in Subject select input
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCador authored Nov 24, 2023
1 parent c90b6f0 commit e6406dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contactform.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function getTemplateVarContact()
$contacts[$one_contact['id_contact']] = $one_contact;
}

if (isset($this->customer_thread['id_contact'])) {
if (isset($this->customer_thread['id_contact']) && $this->customer_thread['id_contact'] != 0) {
return [
$contacts[$this->customer_thread['id_contact']],
];
Expand Down

0 comments on commit e6406dd

Please sign in to comment.