Index: xmlsitemap_node/xmlsitemap_node.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module,v
retrieving revision 1.19.2.105
diff -u -p -r1.19.2.105 xmlsitemap_node.module
--- xmlsitemap_node/xmlsitemap_node.module	29 Apr 2009 16:16:04 -0000	1.19.2.105
+++ xmlsitemap_node/xmlsitemap_node.module	1 May 2009 18:31:19 -0000
@@ -367,7 +367,7 @@ function xmlsitemap_node_xmlsitemap_link
   }
   $posts_threshold = variable_get('xmlsitemap_node_posts_count_'. $node->uid, variable_get('xmlsitemap_node_posts_count', 100));
   $posts = (integer) db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE uid = %d", $node->uid));
-  if (!user_access('by-pass the authored nodes check', $user) && $posts_threshold > $posts) {
+  if (!user_access('by-pass the authored nodes check', $user) && ($posts > $posts_threshold)) {
     return XMLSITEMAP_LINK_DISABLED;
   }
   if ($node->status) {
