diff --git a/modules/weblogs.module b/modules/weblogs.module index aaa21e10df69f6a4185cac266584b4d7330b46a9..24daac3f41707275e5f9556249fbd1f753587c70 100644 --- a/modules/weblogs.module +++ b/modules/weblogs.module @@ -3,8 +3,8 @@ function weblogs_cron() { - if (db_num_rows(db_query("SELECT nid FROM node WHERE status = '". node_status("posted") ."' AND timestamp > '". variable_get("weblogs_cron_last", time()) ."'", 1))) { - weblogs_notify(variable_get("site_name", "drupal") , path_uri()); + if (db_num_rows(db_query("SELECT nid FROM node WHERE status = 1 AND moderate = 0 AND (created > '". variable_get("weblogs_cron_last", time()) ."' OR changed > '". variable_get("weblogs_cron_last", time()) ."')"), 1)) { +// weblogs_notify(variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""), path_uri()); } variable_set("weblogs_cron_last", time()); }