aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--taxonomy_node_tree.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module
index 619d5d7..0905ac8 100644
--- a/taxonomy_node_tree.module
+++ b/taxonomy_node_tree.module
@@ -66,7 +66,9 @@ function taxonomy_node_tree_index($nodes, $terms) {
}
// Rewind result so it can be used again.
- $nodes->data_seek(0);
+ if (is_object($nodes)) {
+ $nodes->data_seek(0);
+ }
return $tree;
}