Commit eba7a2f6 authored by mikeytown2's avatar mikeytown2

#787464: fix where clause.

parent 3ba9a3b9
......@@ -5568,7 +5568,7 @@ function boost_crawler_add_alias_to_table() {
$loop_counter = 0;
// Don't crawl user pages if anonymous can't access them
$hit_users = db_result(db_query("SELECT * FROM {permission} INNER JOIN {role} USING (rid) WHERE (name = 'anonymous user' OR rid = 1) AND perm LIKE '%%access user profiles%%'"));
$hit_users = db_result(db_query("SELECT * FROM {permission} AS p INNER JOIN {role} AS r USING (rid) WHERE (r.name = 'anonymous user' OR r.rid = 1) AND p.perm LIKE '%%access user profiles%%'"));
if (!$hit_users) {
$extra = "AND ua.src NOT LIKE 'user/%%'";
}
......
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