Fix sql error

This commit is contained in:
Laurent Destailleur 2021-04-09 01:31:55 +02:00
parent 2d771704d0
commit 475bdc24f4

View File

@ -426,7 +426,7 @@ class WebsitePage extends CommonObject
} }
$listoflang[] = "'".$this->db->escape(substr(str_replace("'", '', $tmpvalue), 0, 2))."'"; $listoflang[] = "'".$this->db->escape(substr(str_replace("'", '', $tmpvalue), 0, 2))."'";
} }
$stringtouse = $key." IN (".$this->db->sanitize(join(',', $listoflang)).")"; $stringtouse = $key." IN (".$this->db->sanitize(join(',', $listoflang), 1).")";
if ($foundnull) { if ($foundnull) {
$stringtouse = '('.$stringtouse.' OR '.$key.' IS NULL)'; $stringtouse = '('.$stringtouse.' OR '.$key.' IS NULL)';
} }