summaryrefslogtreecommitdiff
path: root/modules/statistics
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-13 08:22:31 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-13 08:22:31 +0000
commitd29ccd1764aa4519f9f35d42b73e4a644618d728 (patch)
tree629728ef5f83664b28e8a75940b72c6e7163b552 /modules/statistics
parent8119c5da9a0746bfa87ac27abeafb849f152d1ce (diff)
downloadbrdo-d29ccd1764aa4519f9f35d42b73e4a644618d728.tar.gz
brdo-d29ccd1764aa4519f9f35d42b73e4a644618d728.tar.bz2
- Patch #782240 by Pasqualle: invalid argument supplied for foreach() in _block_rehash().
Diffstat (limited to 'modules/statistics')
-rw-r--r--modules/statistics/statistics.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 59e112b38..fce5f6acf 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -304,12 +304,14 @@ function statistics_get($nid) {
* Implements hook_block_info().
*/
function statistics_block_info() {
+ $blocks = array();
+
if (variable_get('statistics_count_content_views', 0)) {
$blocks['popular']['info'] = t('Popular content');
// Too dynamic to cache.
$blocks['popular']['cache'] = DRUPAL_NO_CACHE;
- return $blocks;
}
+ return $blocks;
}
/**