mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 11:54:52 +00:00
Fixed an issue under edit user where it would update a blank password if none was entered
This commit is contained in:
2
post.php
2
post.php
@@ -160,7 +160,7 @@ if(isset($_POST['edit_user'])){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE users SET user_name = '$name', user_email = '$email', user_password = '$password', user_updated_at = NOW() WHERE user_id = $user_id");
|
mysqli_query($mysqli,"UPDATE users SET user_name = '$name', user_email = '$email', user_updated_at = NOW() WHERE user_id = $user_id");
|
||||||
|
|
||||||
if(!empty($new_password)){
|
if(!empty($new_password)){
|
||||||
$new_password = md5($new_password);
|
$new_password = md5($new_password);
|
||||||
|
|||||||
Reference in New Issue
Block a user