From 214fa2dc0adc05eeea7cd8cdeb7787127d731366 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Tue, 2 Apr 2024 10:09:05 +0200 Subject: [PATCH] Fix phan, swap parameter --- htdocs/ticket/class/ticket.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index d7927cc86df..43adaa0b798 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -3030,7 +3030,7 @@ class Ticket extends CommonObject if (!empty($this->origin_references)) { // $this->origin_references should be '<'.$this->origin_references.'>' $references .= (empty($references) ? '' : ' ').$this->origin_references; } - if (!empty($this->email_msgid) && !preg_match('/'.preg_quote('/', $this->email_msgid).'/', $references)) { + if (!empty($this->email_msgid) && !preg_match('/'.preg_quote($this->email_msgid, '/').'/', $references)) { $references .= (empty($references) ? '' : ' ').'<'.$this->email_msgid.'>'; } if ($references) {