Fix compatibility php 5.5-

This commit is contained in:
Laurent Destailleur 2017-06-10 16:29:25 +02:00
parent ce470b8dd5
commit 75452e6d19

View File

@ -1908,7 +1908,7 @@ if (! function_exists("llxFooter"))
{ {
if (empty($val['sortfield'])) unset($val['sortfield']); if (empty($val['sortfield'])) unset($val['sortfield']);
if (empty($val['sortorder'])) unset($val['sortorder']); if (empty($val['sortorder'])) unset($val['sortorder']);
dol_syslog('Save lastsearch_values_tmp_'.$key.'='.json_encode($val, 0, 1)." (systematic recording of last search criteria)"); dol_syslog('Save lastsearch_values_tmp_'.$key.'='.json_encode($val, 0)." (systematic recording of last search criteria)");
$_SESSION['lastsearch_values_tmp_'.$key]=json_encode($val); $_SESSION['lastsearch_values_tmp_'.$key]=json_encode($val);
unset($_SESSION['lastsearch_values_'.$key]); unset($_SESSION['lastsearch_values_'.$key]);
} }