Commit d29ccd17 authored by Dries's avatar Dries

- Patch #782240 by Pasqualle: invalid argument supplied for foreach() in _block_rehash().

parent 8119c5da
......@@ -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;
}
/**
......
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