From fcc40c77be1b8e4bf6f78ee34cb861227a0688d6 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 25 Jan 2023 13:21:09 +0100 Subject: [PATCH] Fixed handling no recipient address issue Signed-off-by: Janos SUTO --- webui/model/search/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index ca803570..cea3ac0c 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -554,8 +554,8 @@ class ModelSearchSearch extends Model { $m['shortfrom'] = make_short_string($m['from'], MAX_CGI_FROM_SUBJ_LEN); $m['from'] = escape_gt_lt_quote_symbols($m['from']); - isset($rcpt[$m['id']]) ? $m['to'] = $rcpt[$m['id']] : $m['to'] = ''; - $m['shortto'] = make_short_string($this->get_preferred_recipient($rcpt[$m['id']]), MAX_CGI_FROM_SUBJ_LEN); + isset($rcpt[$m['id']]) ? $m['to'] = $rcpt[$m['id']] : $m['to'] = array(''); + $m['shortto'] = make_short_string($this->get_preferred_recipient($m['to']), MAX_CGI_FROM_SUBJ_LEN); $m['to'] = escape_gt_lt_quote_symbols($m['to']);