diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-28 19:18:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-28 19:18:08 +0000 |
commit | a938e18a1bd36d887010863817470b690fdbf6f3 (patch) | |
tree | adbc7edb165255a47739fdbe7e0184c241f6340c /modules/statistics | |
parent | ff8b0618f5892d165720453efcd318b0d85a6f8c (diff) | |
download | brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.gz brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.bz2 |
- Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort.
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 20801cb12..1b198deb8 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -394,5 +394,5 @@ function statistics_ranking() { * Implement hook_update_index(). */ function statistics_update_index() { - variable_set('node_cron_views_scale', 1.0 / max(1, db_result(db_query('SELECT MAX(totalcount) FROM {node_counter}')))); + variable_set('node_cron_views_scale', 1.0 / max(1, db_query('SELECT MAX(totalcount) FROM {node_counter}')->fetchField())); } |