From 10755e6e7aebe10155149eedb8cef8a4d7ad4981 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 13 Jun 2011 19:07:20 -0300 Subject: Testing if we can seek db result --- taxonomy_node_tree.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3