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