mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Fix bad call to old function exists(), now using accounts class
This commit is contained in:
parent
f6636247c7
commit
01cd30a78f
@ -201,6 +201,8 @@
|
|||||||
// stores the userdata
|
// stores the userdata
|
||||||
function saveUserData($_userData)
|
function saveUserData($_userData)
|
||||||
{
|
{
|
||||||
|
global $phpgw;
|
||||||
|
|
||||||
$account = CreateObject('phpgwapi.accounts',$_userData['account_id']);
|
$account = CreateObject('phpgwapi.accounts',$_userData['account_id']);
|
||||||
$account->update_data($_userData);
|
$account->update_data($_userData);
|
||||||
$account->save_repository();
|
$account->save_repository();
|
||||||
@ -266,7 +268,7 @@
|
|||||||
// otherwise the error array
|
// otherwise the error array
|
||||||
function userDataInvalid($_userData)
|
function userDataInvalid($_userData)
|
||||||
{
|
{
|
||||||
global $phpgw_info;
|
global $phpgw,$phpgw_info;
|
||||||
|
|
||||||
$totalerrors = 0;
|
$totalerrors = 0;
|
||||||
|
|
||||||
@ -281,7 +283,7 @@
|
|||||||
|
|
||||||
if ($_userData['old_loginid'] != $_userData['account_lid'])
|
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');
|
$error[$totalerrors] = lang('That loginid has already been taken');
|
||||||
$totalerrors++;
|
$totalerrors++;
|
||||||
|
Loading…
Reference in New Issue
Block a user