Commit 68097984 authored by Dries's avatar Dries

- Patch #160226 by Berdir, Dave Reid, karschsp: fixed SQL query in...

- Patch #160226 by Berdir, Dave Reid, karschsp: fixed SQL query in statistics_node_tracker function.
parent 7e5eaa0c
......@@ -21,7 +21,9 @@ function statistics_node_tracker() {
$query
->fields('a', array('aid', 'timestamp', 'url', 'uid'))
->fields('u', array('name'))
->condition('path', 'node/' . $node->nid . '%', 'LIKE')
->condition(db_or()
->condition('a.path', 'node/' . $node->nid)
->condition('a.path', 'node/' . $node->nid . '/%', 'LIKE'))
->limit(30)
->setHeader($header);
......@@ -32,7 +34,8 @@ function statistics_node_tracker() {
array('data' => format_date($log->timestamp, 'small'), 'class' => 'nowrap'),
_statistics_link($log->url),
theme('username', $log),
l(t('details'), "admin/reports/access/$log->aid"));
l(t('details'), "admin/reports/access/$log->aid"),
);
}
if (empty($rows)) {
......
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