From 01cd30a78f23c6900581fa09117d6a153682a185 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 29 Mar 2001 12:18:43 +0000 Subject: [PATCH] Fix bad call to old function exists(), now using accounts class --- admin/editaccount.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index 267fd8826a..ae37ed68d9 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -201,6 +201,8 @@ // stores the userdata function saveUserData($_userData) { + global $phpgw; + $account = CreateObject('phpgwapi.accounts',$_userData['account_id']); $account->update_data($_userData); $account->save_repository(); @@ -266,7 +268,7 @@ // otherwise the error array function userDataInvalid($_userData) { - global $phpgw_info; + global $phpgw,$phpgw_info; $totalerrors = 0; @@ -281,7 +283,7 @@ if ($_userData['old_loginid'] != $_userData['account_lid']) { - if (account_exists($_userData['account_loginid'])) + if ($phpgw->accounts->exists($_userData['account_loginid'])) { $error[$totalerrors] = lang('That loginid has already been taken'); $totalerrors++;