--- simplenews.module   Sun Jul 13 06:41:12 2008
+++ simplenews.module   Mon Aug  4 00:41:05 2008
@@ -336,6 +336,7 @@ function simplenews_form(&$node) {
  */
 function simplenews_validate($node) {
   global $valid_mails;
+  $node->taxonomy = isset($node->category) ? $node->category :$node->taxonomy;
   if ($node->send == 1) {
     if (!isset($node->taxonomy)) {
       $names =  node_get_types('names', $node);
@@ -406,7 +407,7 @@ function simplenews_cron() {
  * Saves extra node content to module database table.
  */
 function simplenews_insert($node) {
-  $term = simplenews_validate_taxonomy($node->taxonomy);
+  $term = simplenews_validate_taxonomy(isset($node->category) ? $node->category :$node->taxonomy);
   $tid = is_array($term) ? array_values($term) : FALSE;
   $node->simplenews_tid = $tid ? $tid[0] : 0;
   //tid is also saved in this table since it is needed by _simplenews_send(), and the term_node table is
@@ -421,7 +422,7 @@ function simplenews_insert($node) {
  * Implementation of hook_update().
  */
 function simplenews_update($node) {
-  $term = simplenews_validate_taxonomy($node->taxonomy);
+  $term = simplenews_validate_taxonomy(isset($node->category) ? $node->category :$node->taxonomy);
   $tid = is_array($term) ? array_values($term) : FALSE;
   $node->simplenews_tid = $tid ? $tid[0] : 0;
   if ($node->send == 1 && user_access('send newsletter')) {