Index: simplenews.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplenews/simplenews.module,v
retrieving revision 1.76.2.5
diff -u -p -r1.76.2.5 simplenews.module
--- simplenews.module	11 Apr 2008 15:35:56 -0000	1.76.2.5
+++ simplenews.module	11 Apr 2008 22:22:38 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: simplenews.module,v 1.76.2.5 2008/04/11 15:35:56 sutharsan Exp $
+// $Id: simplenews.module,v 1.76.2.4 2008/04/09 18:13:57 sutharsan Exp $
 
 //DONE: (issue) multiple subscription block (#121479)
 //DONE: (issue) #221346 solution by lilou: simplenews.css not aggregated
@@ -350,9 +350,10 @@ function simplenews_nodeapi(&$node, $op,
       // When translation module is activated all translated modules share the send status
       //TODO Share all states, not only send state
       if (module_exists('translation') && $send_with_permission) {
-        $translations = translation_node_get_translations($node->tnid);
-        foreach ($translations as $translation) {
-          db_query("UPDATE {simplenews_newsletters} SET s_status = %d WHERE nid = %d", SIMPLENEWS_STATUS_SEND_READY, $translation->nid);
+        if ($translations = translation_node_get_translations($node->tnid))  {
+          foreach ($translations as $translation) {
+            db_query("UPDATE {simplenews_newsletters} SET s_status = %d WHERE nid = %d", SIMPLENEWS_STATUS_SEND_READY, $translation->nid);
+          }
         }
       }
 
