Fix list of blog topics

This commit is contained in:
Laurent Destailleur 2020-02-28 18:21:26 +01:00
parent bfb9739ae8
commit 6211577db7

View File

@ -309,6 +309,8 @@ class WebsitePage extends CommonObject
foreach ($filter as $key => $value) {
if ($key == 't.rowid' || $key == 't.fk_website') {
$sqlwhere[] = $key.'='.$value;
} elseif ($key == 'lang' || $key == 't.lang') {
$sqlwhere[] = $key." = '".$this->db->escape(substr($value, 0, 2))."'";
} else {
$sqlwhere[] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
}