Fix sql
This commit is contained in:
parent
12e090eed6
commit
a8613661fc
@ -766,7 +766,7 @@ function getPagesFromSearchCriterias($type, $algo, $searchstring, $max = 25, $so
|
|||||||
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.'website_page';
|
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.'website_page';
|
||||||
$sql .= " WHERE fk_website = ".$website->id;
|
$sql .= " WHERE fk_website = ".$website->id;
|
||||||
if ($langcode) {
|
if ($langcode) {
|
||||||
$sql .= " AND lang ='".$db->escape($langcode).'"';
|
$sql .= " AND lang ='".$db->escape($langcode)."'";
|
||||||
}
|
}
|
||||||
if ($type) {
|
if ($type) {
|
||||||
$tmparrayoftype = explode(',', $type);
|
$tmparrayoftype = explode(',', $type);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user