? 892950-show-status.patch
? sites/all/modules/devel
? sites/default/files
? sites/default/private
? sites/default/settings.php
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.1196
diff -u -p -r1.1196 user.module
--- modules/user/user.module	26 Aug 2010 09:14:33 -0000	1.1196
+++ modules/user/user.module	26 Aug 2010 13:24:41 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: user.module,v 1.1196 2010/08/26 09:14:33 webchick Exp $
+// $Id: user.module,v 1.1195 2010/08/23 14:53:50 webchick Exp $
 
 /**
  * @file
@@ -512,6 +512,9 @@ function user_save($account, $edit = arr
         $op = $edit['status'] == 1 ? 'status_activated' : 'status_blocked';
         _user_mail_notify($op, $user);
       }
+      else {
+        watchdog('user', 'Mail could not be sent because:<br />$edit["status"]: ' . $edit['status'] . '<br />$account->status: ' . $account->status, array(), WATCHDOG_NOTICE);
+      }
 
       user_module_invoke('update', $edit, $user, $category);
       module_invoke_all('entity_update', $user, 'user');
Index: modules/user/user.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.pages.inc,v
retrieving revision 1.74
diff -u -p -r1.74 user.pages.inc
--- modules/user/user.pages.inc	11 Jul 2010 22:14:28 -0000	1.74
+++ modules/user/user.pages.inc	26 Aug 2010 13:24:41 -0000
@@ -307,7 +307,7 @@ function user_profile_form_submit($form,
   // Populate $edit with the properties of $account, which have been edited on
   // this form by taking over all values, which appear in the form values too.
   $edit = array_intersect_key((array) $account, $form_state['values']);
-
+  watchdog('user', 'Values passed to user_save() from user_profile_form_submit():<br />$edit["status"]: ' . $edit['status'] . '<br />$account->status: ' . $account->status, array(), WATCHDOG_NOTICE);
   user_save($account, $edit, $category);
   $form_state['values']['uid'] = $account->uid;
 
