]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20948 auth plguins do not throw notices in methods if not configured yet
authorPetr Skoda <skodak@moodle.org>
Tue, 24 Nov 2009 14:51:28 +0000 (14:51 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 24 Nov 2009 14:51:28 +0000 (14:51 +0000)
admin/user/user_bulk_forcepasswordchange.php

index 5e02065f44af2e4463e6b0afc61a704dcefb9701..e32e6169e10194f40917415876c5433b7dd8756e 100644 (file)
@@ -29,7 +29,7 @@ if ($confirm and confirm_sesskey()) {
         if (!$auth = get_auth_plugin($authname)) {
             continue;
         }
-        if (@$auth->is_internal() and @$auth->can_change_password()) { // plugins may not be configured yet, not nice :-(
+        if ($auth->is_internal() and $auth->can_change_password()) {
             $changeable[$authname] = true;
         }
     }