]> git.mjollnir.org Git - moodle.git/commitdiff
$form is an object (from data_submitted).
authorstronk7 <stronk7>
Tue, 23 Jan 2007 16:33:15 +0000 (16:33 +0000)
committerstronk7 <stronk7>
Tue, 23 Jan 2007 16:33:15 +0000 (16:33 +0000)
auth/db/auth.php

index 06ba17eadb494628768fd0ab92652a0307e0e183..7714725605bf0d69ee597f8b1f532da5b76b791a 100644 (file)
@@ -470,7 +470,7 @@ class auth_plugin_db {
     // A chance to validate form data, and last chance to 
     // do stuff before it is inserted in config_plugin
     function validate_form(&$form, &$err) {
-        if ($form['passtype'] === 'internal') {
+        if ($form->passtype === 'internal') {
             $this->config->changepasswordurl = '';
             set_config('changepasswordurl', '', 'auth/db');
         }