Index: simplenews.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/simplenews/simplenews.module,v
retrieving revision 1.76.2.141
diff -u -p -r1.76.2.141 simplenews.module
--- simplenews.module	24 Nov 2009 21:59:54 -0000	1.76.2.141
+++ simplenews.module	20 Feb 2010 18:01:44 -0000
@@ -1528,15 +1528,17 @@ function simplenews_mail($key, &$message
       // If not, build the message and store it for later use.
       if (!isset($messages[$nid][$langcode])) {
 
-	// Use the default theme to render the email content.
-	// We temporary clear the $custom_theme to prevent the admin theme
-	// from being used when the newsletter is sent from the
-	// node add/edit form and the admin theme is other than the
-	// default theme. When no $custom_theme is set, the 
-	// After theming the email $custom_theme is restored.
-      	global $custom_theme;
-        $org_cutom_theme = $custom_theme;
-        $custom_theme = '';
+        // Use the default theme to render the email content.
+        // We temporary clear the $custom_theme to prevent the admin theme
+        // from being used when the newsletter is sent from the
+        // node add/edit form and the admin theme is other than the
+        // default theme. When no $custom_theme is set, the 
+        // After theming the email $custom_theme is restored.
+        global $theme;
+        global $custom_theme;
+        $org_custom_theme = $custom_theme;
+        $custom_theme = NULL;
+        $theme = NULL;
 
         $node = drupal_clone($context['node']);
 
@@ -1585,7 +1587,8 @@ function simplenews_mail($key, &$message
         $messages[$nid][$langcode]['footer'] = $footer;
 
         // Restore the custom theme.
-        $custom_theme = $org_cutom_theme;
+        $custom_theme = $org_custom_theme;
+        $theme = NULL;
       }
       else {
         // Get message data from buffer
