summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index f5b42d91d..dcd68a5ec 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -67,7 +67,7 @@ function user_load($array = array()) {
foreach ($array as $key => $value) {
if ($key == "pass") {
$query .= "u.$key = '". md5($value) ."' AND ";
- }
+ }
else {
$query .= "u.$key = '". check_query($value) ."' AND ";
}
@@ -1384,7 +1384,7 @@ function user_admin_role($edit = array()) {
function user_admin_edit($edit = array()) {
- $op = $_SERVER["op"];
+ $op = $_POST["op"];
$id = arg(3);
if ($account = user_load(array("uid" => $id))) {