From: Petr Skoda Date: Tue, 24 Nov 2009 14:51:28 +0000 (+0000) Subject: MDL-20948 auth plguins do not throw notices in methods if not configured yet X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8139c92f6d764232b09d26ebb35dfecbbc37cfba;p=moodle.git MDL-20948 auth plguins do not throw notices in methods if not configured yet --- 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; } }