? account_profile-929344.patch
Index: account_profile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/account_profile/account_profile.module,v
retrieving revision 1.1.2.11
diff -u -p -r1.1.2.11 account_profile.module
--- account_profile.module	26 Oct 2010 17:43:01 -0000	1.1.2.11
+++ account_profile.module	17 Nov 2010 12:51:14 -0000
@@ -57,7 +57,7 @@ function account_profile_form_alter(&$fo
     break;
     case $profile . '_node_form':
       /* integration with account form */
-      if (is_numeric(arg(1)) && $user = user_load(arg(1))) { // activate only on edit page (not on registration page)
+      if (isset($form['uid']) && $user = user_load($form['uid']['#value'])) { // activate only on edit page (not on registration page)
           module_load_include('pages.inc', 'user');
           $account_form = user_profile_form(array(), $user);
           unset($account_form['submit'], $account_form['delete']); // remove duplicated Save button and Delete
