From 086d3e36e51988a1f4367be0d31feeb0b9d9916e Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 15 Jun 2011 15:44:07 -0300 Subject: Checking with mysql_num_rows() --- taxonomy_node_tree.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3