From 8139c92f6d764232b09d26ebb35dfecbbc37cfba Mon Sep 17 00:00:00 2001
From: Petr Skoda <skodak@moodle.org>
Date: Tue, 24 Nov 2009 14:51:28 +0000
Subject: [PATCH] MDL-20948 auth plguins do not throw notices in methods if not
 configured yet

---
 admin/user/user_bulk_forcepasswordchange.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin/user/user_bulk_forcepasswordchange.php b/admin/user/user_bulk_forcepasswordchange.php
index 5e02065f44..e32e6169e1 100644
--- a/admin/user/user_bulk_forcepasswordchange.php
+++ b/admin/user/user_bulk_forcepasswordchange.php
@@ -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;
         }
     }
-- 
2.39.5