From 8570d4b2afcee32869447bc89fedb4de5ca6805e Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 19 May 2001 19:32:05 +0000 Subject: [PATCH] Another attempt at trying to fix the problem with editing accounts (bugs reported on SF). --- admin/editaccount.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index bc3433d08c..e7cf6a527b 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -40,8 +40,10 @@ $t->set_block('account','form_passwordinfo','form_passwordinfo'); $t->set_block('account','form_buttons_','form_buttons_'); + print_debug('Type : '.gettype($_userData).'
_userData(size) = "'.$_userData.'"('.strlen($_userData).')'); if (is_array($_userData)) { + $userData = Array(); $userData=$_userData; @reset($userData['account_groups']); while (list($key, $value) = @each($userData['account_groups'])) @@ -52,7 +54,7 @@ $account = CreateObject('phpgwapi.accounts'); $allGroups = $account->get_list('groups'); } - else + elseif(is_string($_userData) && $_userData=='') { $account = CreateObject('phpgwapi.accounts',$_account_id); $userData = $account->read_repository(); @@ -184,7 +186,7 @@ for ($i=0;$i