Commit 15a2cbd2 authored by Kjartan's avatar Kjartan

- Fixing a broken query when tracking by host.

parent 756a5da5
......@@ -363,7 +363,7 @@ function statistics_admin_accesslog_table($type, $id) {
}
else if ($type == 3) {
/* retrieve recent access logs for hostname $id */
$sql = "SELECT nid, url, hostname, uid, timestamp FROM {accesslog} WHERE hostname = ". check_query($id);
$sql = "SELECT nid, url, hostname, uid, timestamp FROM {accesslog} WHERE hostname = '". check_query($id) ."'";
}
else {
/* retrieve all recent access logs */
......
......@@ -363,7 +363,7 @@ function statistics_admin_accesslog_table($type, $id) {
}
else if ($type == 3) {
/* retrieve recent access logs for hostname $id */
$sql = "SELECT nid, url, hostname, uid, timestamp FROM {accesslog} WHERE hostname = ". check_query($id);
$sql = "SELECT nid, url, hostname, uid, timestamp FROM {accesslog} WHERE hostname = '". check_query($id) ."'";
}
else {
/* retrieve all recent access logs */
......
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