From bf31f4e94abd9aba61a47eabc7d0c05384b2f889 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 25 Mar 2008 17:02:09 +0000 Subject: [PATCH] "removing unnecessary instancations" --- phpgwapi/inc/class.accounts_ldap.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 702e8ae226..e45792f026 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -548,13 +548,9 @@ class accounts_ldap if (isset($data['account_passwd']) && $data['account_passwd']) { - if(!@is_object($GLOBALS['egw']->auth)) - { - $GLOBALS['egw']->auth =& CreateObject('phpgwapi.auth'); - } if (!preg_match('/^\\{[a-z5]{3,5}\\}.+/i',$data['account_passwd'])) // if it's not already entcrypted, do so now { - $data['account_passwd'] = $GLOBALS['egw']->auth->encrypt_ldap($data['account_passwd']); + $data['account_passwd'] = auth::encrypt_ldap($data['account_passwd']); } $to_write['userpassword'] = $data['account_passwd']; }