Parcourir la source

Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

Laurent Destailleur il y a 3 ans
Parent
commit
9e80632938
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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);
 }