summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/user.module4
-rw-r--r--modules/user/user.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module
index f5b42d91d..dcd68a5ec 100644
--- a/modules/user.module
+++ b/modules/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))) {
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))) {