Commit a40dafea authored by David Lesieur's avatar David Lesieur

Fixed bad initialization of static variable.

parent 05eed3b5
......@@ -126,7 +126,7 @@ function cck_facets_create_facet($field, $active_path = array()) {
* Single category object (if $path was TRUE), or an array of categories otherwise.
function cck_facets_create_category($field, $value, $count = NULL, $category_path = TRUE) {
static $factories = array();
static $factories = NULL;
if (!isset($factories)) {
$factories = module_invoke_all('cck_facets_factory', 'category');
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