I have even more...
As
$from and
$where variables can be not empty in '
includes/modules/pages/sitemapxml/sitemapxml_ezpages.php' file after fixing the bug with using of quotes for
TABLE_EZPAGES_TEXT constant (see earlier correspondence in this tread), "p." prefix must be added to all columns belonging to TABLE_EZPAGES table in all sql-queries, for ex:
Code:
$page_query_sql =
"SELECT p.toc_chapter
FROM " . TABLE_EZPAGES . " p " . $from . "
WHERE p.alt_url_external = ''
AND (
(p.status_header = 1 AND p.header_sort_order > 0)
OR (p.status_sidebox = 1 AND p.sidebox_sort_order > 0)
OR (p.status_footer = 1 AND p.footer_sort_order > 0)
)
AND p.status_toc != 0" .
$where . "
GROUP BY p.toc_chapter";
Bookmarks