From 2d4a43853362755494da7666fc02669e0d2fc923 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Jul 2004 19:53:07 +0000 Subject: [PATCH] fixed hook-values for add-user hook, new account id was not set, which gave an sql error in fudforum --- admin/inc/class.boaccounts.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index 5dd7c6cd1b..059ebb7bda 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -359,7 +359,7 @@ // do we have all needed data?? if (!$errors = $this->validate_user($userData)) { - $account_id = $this->so->add_user($userData); + $userData['account_id'] = $account_id = $this->so->add_user($userData); if ($userData['anonymous']) { @@ -370,7 +370,7 @@ $GLOBALS['phpgw']->acl->delete_repository('phpgwapi','anonymous',$account_id); } // make this information for the hooks available - $GLOBALS['hook_values'] = $userData; + $GLOBALS['hook_values'] = $userData + array('new_passwd' => $userData['account_passwd']); $GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array( 'location' => 'addaccount' ),False,True); // called for every app now, not only enabled ones