aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-06-13 19:07:20 -0300
committerSilvio <silvio@devlet.com.br>2011-06-13 19:07:20 -0300
commit10755e6e7aebe10155149eedb8cef8a4d7ad4981 (patch)
tree8f6e56d7e41d35a6c125be0f2345ef9b40495199
parent318b38350009689cb2e7aa351cb63055f30266d6 (diff)
downloadtaxonomy_node_tree-10755e6e7aebe10155149eedb8cef8a4d7ad4981.tar.gz
taxonomy_node_tree-10755e6e7aebe10155149eedb8cef8a4d7ad4981.tar.bz2
Testing if we can seek db result
-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;
}