Code

Static call replaced with non static
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jul 2005 05:25:48 +0000 (05:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jul 2005 05:25:48 +0000 (05:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@991 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_password-methods.inc

index d633749fcaff450f27a23fb13e2b245595157571..7c00dccdeed159db862e2853bdf8c00a0e9bfa8d 100644 (file)
@@ -95,7 +95,13 @@ function change_password ($dn, $password, $mode=0, $hash= "")
   $newpass= "";
 
   // Get all available encryption Methods 
-  $available = passwordMethod::get_available_methods();
+
+  // STATIC : :(   
+  // $available = passwordMethod::get_available_methods();
+
+  // NON STATIC CALL :)
+  $tmp = new passwordMethod($_SESSION['config']);
+  $available = $tmp->get_available_methods();
 
   // read current password entry for $dn, to detect the encryption Method
   $ldap       = $config->get_ldap_link();