The user editing screen and the change password screen didn't play very

well with debug = on. In fact the change password screen didn't play at all.

Made a few small changes to fix notices and now everything works OK.
Added a missing language string.

*****************
This problem may very well exist in MOODLE_14_STABLE too! Unfortunately I
don't have access to a 1.4 checkout right now, so it will have to wait.
*****************
This commit is contained in:
defacer 2004-12-16 17:26:29 +00:00
parent d6b3c7b82e
commit 54598fb04e
3 changed files with 5 additions and 7 deletions

View file

@ -60,7 +60,7 @@ if (isadmin()) {
}
echo " </td>";
echo "</tr>\n";
if (!$adminself && ($CFG->{'auth_'.$user->auth.'_stdchangepassword'} || $CFG->changepassword)){
if (!$adminself && (!empty($CFG->{'auth_'.$user->auth.'_stdchangepassword'}) || $CFG->changepassword)){
if (get_user_preferences('auth_forcepasswordchange', NULL, $user->id)) {
$checked = ' checked="checked" ';
} else {