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

merge-requests/26/head
Dries Buytaert 2010-05-13 08:22:31 +00:00
parent 8119c5da9a
commit d29ccd1764
1 changed files with 3 additions and 1 deletions

View File

@ -304,12 +304,14 @@ function statistics_get($nid) {
* Implements hook_block_info(). * Implements hook_block_info().
*/ */
function statistics_block_info() { function statistics_block_info() {
$blocks = array();
if (variable_get('statistics_count_content_views', 0)) { if (variable_get('statistics_count_content_views', 0)) {
$blocks['popular']['info'] = t('Popular content'); $blocks['popular']['info'] = t('Popular content');
// Too dynamic to cache. // Too dynamic to cache.
$blocks['popular']['cache'] = DRUPAL_NO_CACHE; $blocks['popular']['cache'] = DRUPAL_NO_CACHE;
return $blocks;
} }
return $blocks;
} }
/** /**