From 648c524eb5c76f56f0d9e90455f0746e71acfb18 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sun, 22 May 2022 14:45:56 +0200 Subject: [PATCH] Fix php error --- htdocs/admin/mails_templates.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/admin/mails_templates.php b/htdocs/admin/mails_templates.php index d96e0706223..3d5125fab5d 100644 --- a/htdocs/admin/mails_templates.php +++ b/htdocs/admin/mails_templates.php @@ -619,6 +619,7 @@ if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) { if ($limit > 0 && $limit != $conf->liste_limit) { $param .= '&limit='.urlencode($limit); } +if (!empty($search)) { foreach ($search as $key => $val) { if (is_array($search[$key]) && count($search[$key])) { foreach ($search[$key] as $skey) { @@ -630,6 +631,7 @@ foreach ($search as $key => $val) { $param .= '&search_'.$key.'='.urlencode($search[$key]); } } +} if ($optioncss != '') { $param .= '&optioncss='.urlencode($optioncss); }