summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2011-04-23 12:27:46 -0700
committerTim Almdal <tnalmdal@shaw.ca>2011-04-23 12:27:46 -0700
commitb30afaeab7d931f4d380a96c4aadd6deb86df5e2 (patch)
tree949aa74758b75a0e7740e7cae4c41e4c23394d44 /modules/user
parentfb45d1a2ec468b523ea709d90361caeb174d5599 (diff)
Fix ticket #1694 (continued). Reset the corrected user module variable to the value of the incorrect spelling (don't assume that the original value was still 5.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/helpers/user_installer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php
index b5e40a24..b9f3c57d 100644
--- a/modules/user/helpers/user_installer.php
+++ b/modules/user/helpers/user_installer.php
@@ -47,7 +47,8 @@ class user_installer {
}
if ($version == 3) {
- module::set_var("user", "minimum_password_length", 5);
+ $password_length = module::get_var("user", "mininum_password_length", 5);
+ module::set_var("user", "minimum_password_length", $password_length);
module::clear_var("user", "mininum_password_length");
module::set_version("user", $version = 4);
}