This commit is contained in:
Laurent Destailleur 2020-04-27 19:03:04 +02:00
parent 12e090eed6
commit a8613661fc

View File

@ -766,7 +766,7 @@ function getPagesFromSearchCriterias($type, $algo, $searchstring, $max = 25, $so
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.'website_page';
$sql .= " WHERE fk_website = ".$website->id;
if ($langcode) {
$sql .= " AND lang ='".$db->escape($langcode).'"';
$sql .= " AND lang ='".$db->escape($langcode)."'";
}
if ($type) {
$tmparrayoftype = explode(',', $type);