aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-06-15 15:44:07 -0300
committerSilvio <silvio@devlet.com.br>2011-06-15 15:44:07 -0300
commit086d3e36e51988a1f4367be0d31feeb0b9d9916e (patch)
treeb9c6f70a67ad57b28bedda0277ed3a46c92fff26
parentb391eb8bd7b2dd2dba90d51b7316f0c8f33dd4e9 (diff)
downloadtaxonomy_node_tree-086d3e36e51988a1f4367be0d31feeb0b9d9916e.tar.gz
taxonomy_node_tree-086d3e36e51988a1f4367be0d31feeb0b9d9916e.tar.bz2
Checking with mysql_num_rows()
-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);
}