RCS file: /cvs/drupal-contrib/contributions/modules/xmlsitemap/xmlsitemap/Attic/xmlsitemap.module,v
retrieving revision 1.1.2.111
diff -u -p -r1.1.2.111 xmlsitemap.module
--- xmlsitemap.module	10 May 2009 11:18:31 -0000	1.1.2.111
+++ xmlsitemap.module	10 May 2009 12:07:00 -0000
@@ -280,11 +280,10 @@ function xmlsitemap_flag_sitemap() {
  * Return the number of links present in xmlsitemap table.
  */
 function xmlsitemap_link_count() {
-  static $link_count;
-  if (empty($link_count)) {
+  static $link_count = 0;
+  if (!$link_count) {
     if (!db_table_exists('xmlsitemap')) {
-      $link_count = 0;
-      watchdog('xmlsitemap', 'The <em>xmlsitemap</em> database table does not exist; verify that you correctly installed <em>XML sitemap</em>.', array(), WATCHDOG_ERROR);
+      watchdog('xmlsitemap', 'The <em>xmlsitemap</em> database table does not exist.', array(), WATCHDOG_ERROR);
     }
     else {
       $link_count = db_result(db_query("SELECT COUNT(xsm.loc)". xmlsitemap_sitemap_query()));

