Skip to content

Commit

Permalink
Fix save setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 15, 2018
1 parent 7db2338 commit ce7da41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/functions2.lib.php
Expand Up @@ -1451,7 +1451,7 @@ function dol_set_user_param($db, $conf, &$user, $tab)
foreach ($tab as $key => $value)
{
if ($i > 0) $sql.=',';
$sql.="'".$this->db->escape($key)."'";
$sql.="'".$db->escape($key)."'";
$i++;
}
$sql.= ")";
Expand All @@ -1472,7 +1472,7 @@ function dol_set_user_param($db, $conf, &$user, $tab)
{
$sql = "INSERT INTO ".MAIN_DB_PREFIX."user_param(fk_user,entity,param,value)";
$sql.= " VALUES (".$user->id.",".$conf->entity.",";
$sql.= " '".$this->db->escape($key)."','".$db->escape($value)."')";
$sql.= " '".$db->escape($key)."','".$db->escape($value)."')";

dol_syslog("functions2.lib::dol_set_user_param", LOG_DEBUG);
$result=$db->query($sql);
Expand Down

0 comments on commit ce7da41

Please sign in to comment.