mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix sql error
This commit is contained in:
parent
08deb3c0e9
commit
038b005e6a
|
|
@ -2263,7 +2263,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||
$sql .= " FROM ".MAIN_DB_PREFIX."website_page as wp, ".MAIN_DB_PREFIX."website as w";
|
||||
$sql .= " WHERE wp.type_container IN ('page', 'blogpost')";
|
||||
$sql .= " AND wp.fk_website = w.rowid";
|
||||
$sql .= " AND status = ".WebsitePage::STATUS_VALIDATED;
|
||||
$sql .= " AND wp.status = ".WebsitePage::STATUS_VALIDATED;
|
||||
$sql .= " AND wp.pageurl NOT IN ('404', '500', '501', '503')";
|
||||
$sql .= " AND w.ref = '".dol_escape_json($websitekey)."'";
|
||||
$resql = $db->query($sql);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user