Index: privatemsg.pages.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.pages.inc,v
retrieving revision 1.1
diff -u -p -r1.1 privatemsg.pages.inc
--- privatemsg.pages.inc	2 Dec 2009 20:03:59 -0000	1.1
+++ privatemsg.pages.inc	3 Feb 2010 07:05:48 -0000
@@ -225,6 +225,12 @@ function privatemsg_new(&$form_state, $r
   if (!empty($to)) {
     $recipients_string = implode(', ', $to);
   }
+  if (!$thread_id && !empty($recipients_string)) {
+    drupal_set_title(t('Write new message to %recipient', array('%recipient' => $recipients_string)));
+  }
+  elseif (!$thread_id) {
+    drupal_set_title(t('Write new message'));
+  }
   if (isset($form_state['values'])) {
     if (isset($form_state['values']['recipient'])) {
       $recipients_string = $form_state['values']['recipient'];
@@ -233,12 +239,6 @@ function privatemsg_new(&$form_state, $r
     $subject   = $form_state['values']['subject'];
     $body      = $form_state['values']['body'];
   }
-  if (!$thread_id && !empty($recipients_string)) {
-    drupal_set_title(t('Write new message to %recipient', array('%recipient' => $recipients_string)));
-  }
-  elseif (!$thread_id) {
-    drupal_set_title(t('Write new message'));
-  }
 
   $form = array();
   if (isset($form_state['privatemsg_preview'])) {
