MDL-20948 auth plguins do not throw notices in methods if not configured yet

This commit is contained in:
Petr Skoda 2009-11-24 14:51:28 +00:00
parent e79781f72e
commit 8139c92f6d

View 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;
}
}