aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--taxonomy_node_tree.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module
index 5b9ab7f..2d1fbc7 100644
--- a/taxonomy_node_tree.module
+++ b/taxonomy_node_tree.module
@@ -72,7 +72,7 @@ function taxonomy_node_tree_index($nodes, $terms) {
if (is_object($nodes)) {
$nodes->data_seek(0);
}
- else {
+ else if (mysql_num_rows($nodes) > 0) {
mysql_data_seek($nodes, 0);
}