Skip to content
Snippets Groups Projects
Commit 7a341583 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #39257 by merlinofchaos: node_access rewrite breaks with FROM_UNIXTIME.

parent 1b9b51f3
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,7 @@ function db_rewrite_sql($query, $primary_table = 'n', $primary_field = 'nid', $
}
if (!empty($join)) {
$query = preg_replace('|FROM[^[:upper:]/,]+|','\0 '. $join .' ', $query);
$query = preg_replace('|FROM[^[:upper:]/,_]+|','\0 '. $join .' ', $query);
}
if (!empty($where)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment