Skip to content
Snippets Groups Projects
Commit 42548f5d authored by Robert Anderson's avatar Robert Anderson
Browse files

Fixed check for attributes

parent 84a5462f
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ if ($_POST['frmaction'] == "delete") {
$sql = "SELECT * FROM ${DB_TABLE_PREFIX}user_attributes WHERE UserID = $temp";
$check = $db->query($sql);
if (empty($check)) {
if ($check->num_rows == 0) {
if ($_POST['confirm'] == "yes") {
$res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}users WHERE ID = ".$_POST['user_id']);
if ($res !== FALSE) {
......@@ -84,7 +84,6 @@ if ($_POST['frmaction'] == "delete") {
<div class="warning"><?php print_r($db->errorInfo()) ?></div>
<?php
}
} else {
?>
<div class="warning">Delete user aborted</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment