diff options
author | Silvio <silvio@devlet.com.br> | 2011-06-15 15:44:07 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2011-06-15 15:44:07 -0300 |
commit | 086d3e36e51988a1f4367be0d31feeb0b9d9916e (patch) | |
tree | b9c6f70a67ad57b28bedda0277ed3a46c92fff26 /taxonomy_node_tree.module | |
parent | b391eb8bd7b2dd2dba90d51b7316f0c8f33dd4e9 (diff) | |
download | taxonomy_node_tree-086d3e36e51988a1f4367be0d31feeb0b9d9916e.tar.gz taxonomy_node_tree-086d3e36e51988a1f4367be0d31feeb0b9d9916e.tar.bz2 |
Checking with mysql_num_rows()
Diffstat (limited to 'taxonomy_node_tree.module')
-rw-r--r-- | taxonomy_node_tree.module | 2 |
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); } |