- Patch #782240 by Pasqualle: invalid argument supplied for foreach() in _block_rehash().
parent
8119c5da9a
commit
d29ccd1764
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue