diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-08-31 22:15:49 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-08-31 22:15:49 +0000 |
commit | 15a2cbd24341a003a82be5b53723e269d21fe8d0 (patch) | |
tree | cbccf700888e65f58420b8622f729a873f49961d | |
parent | 756a5da5446f33df4b8cc5b5e6c40b2b132c0982 (diff) | |
download | brdo-15a2cbd24341a003a82be5b53723e269d21fe8d0.tar.gz brdo-15a2cbd24341a003a82be5b53723e269d21fe8d0.tar.bz2 |
- Fixing a broken query when tracking by host.
-rw-r--r-- | modules/statistics.module | 2 | ||||
-rw-r--r-- | modules/statistics/statistics.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index d54961873..76e24a3f3 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -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 */ diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index d54961873..76e24a3f3 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -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 */ |