]> git.mjollnir.org Git - moodle.git/commitdiff
Sometimes changepassword is 0 or 1 ... so deal with that
authormoodler <moodler>
Mon, 25 Aug 2003 17:42:21 +0000 (17:42 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 17:42:21 +0000 (17:42 +0000)
user/view.php

index 9e98fb4d54bf861db8cad8ef623e0042784d5ff6..0c5866075957f09a35b731b9553a5dddf3dfefd0 100644 (file)
             echo "<INPUT type=hidden name=id value=\"$course->id\">";
             echo "<INPUT type=submit value=\"".get_string("changepassword")."\">";
             echo "</FORM></P></TD>";
-        } else if ($CFG->changepassword) {
+        } else if (strlen($CFG->changepassword) > 1) {
             echo "<TD NOWRAP><P><FORM ACTION=\"$CFG->changepassword\" METHOD=GET>";
             echo "<INPUT type=submit value=\"".get_string("changepassword")."\">";
             echo "</FORM></P></TD>";