Commit e5071f32 authored by mikeytown2's avatar mikeytown2

#787464: fix column selection.

parent eba7a2f6
......@@ -5579,7 +5579,7 @@ function boost_crawler_add_alias_to_table() {
$total = db_result(db_query("SELECT COUNT(*) FROM {url_alias} AS ua LEFT JOIN {node} AS n ON n.nid = CAST(substring(ua.src, 6) AS UNSIGNED) WHERE (n.status = 1 OR n.status IS NULL) $extra"));
$loaded = variable_get('boost_crawler_loaded_count_alias', 0);
if ($total > $loaded) {
$list = db_query_range("SELECT dst, language FROM {url_alias} AS ua LEFT JOIN {node} AS n ON n.nid = CAST(substring(ua.src, 6) AS UNSIGNED) WHERE (n.status = 1 OR n.status IS NULL) $extra", $loaded, $count);
$list = db_query_range("SELECT ua.dst, ua.language FROM {url_alias} AS ua LEFT JOIN {node} AS n ON n.nid = CAST(substring(ua.src, 6) AS UNSIGNED) WHERE (n.status = 1 OR n.status IS NULL) $extra", $loaded, $count);
$data = array();
while ($row = db_fetch_array($list)) {
if (empty($row['language']) || $language->language != $row['language']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment