Explorar o código

Merge pull request #20985 from ptibogxiv/patch-9

Fix php error
Laurent Destailleur %!s(int64=3) %!d(string=hai) anos
pai
achega
22355c0d77
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      htdocs/admin/mails_templates.php

+ 2 - 0
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);
 }