Commit dcb5e1ed authored by codycraven's avatar codycraven
Browse files

Issue #1817970 by codycraven, moltra: Fix fatal error in associated core when...

Issue #1817970 by codycraven, moltra: Fix fatal error in associated core when number of entities set to 0.
parent f5e9709c
Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------
Issue #1817970 by codycraven, moltra: Fix fatal error in associated core when
number of entities set to 0.
Issue #1798169 by tmsimont, lotyrin, codycraven: Added ignore breadcrumb plugin
to allow other modules to set the breadcrumb.
Issue #1811426 by Moloc: Fix term name not used as page title when menu item
......
......@@ -12,7 +12,10 @@ class TaxonomyDisplayAssociatedDisplayHandlerCore extends TaxonomyDisplayAssocia
public function displayAssociated($term, $options = NULL) {
$build = array();
$number_nodes = isset($options['associated_per_page']) ? $options['associated_per_page'] : variable_get('default_nodes_main', 10);
$number_nodes = intval(isset($options['associated_per_page']) ? $options['associated_per_page'] : variable_get('default_nodes_main', 10));
if ($number_nodes === 0) {
$number_nodes = FALSE;
}
if ($nids = taxonomy_select_nodes($term->tid, TRUE, $number_nodes)) {
$nodes = node_load_multiple($nids);
$build += node_view_multiple($nodes);
......
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