mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
We return something else now
This commit is contained in:
parent
ca6c953818
commit
00d94bbf74
1 changed files with 2 additions and 2 deletions
|
@ -26,14 +26,14 @@ if ($action == "list") {
|
||||||
jtable_respond(null, 'error', "Please only use ^[a-z0-9@_.-]+$ for usernames");
|
jtable_respond(null, 'error', "Please only use ^[a-z0-9@_.-]+$ for usernames");
|
||||||
}
|
}
|
||||||
$isadmin = $_POST['isadmin'] ? $_POST['isadmin'] : '0';
|
$isadmin = $_POST['isadmin'] ? $_POST['isadmin'] : '0';
|
||||||
if (add_user($_POST['emailaddress'], $isadmin, $_POST['password']) === TRUE) {
|
if (add_user($_POST['emailaddress'], $isadmin, $_POST['password']) !== FALSE) {
|
||||||
unset($_POST['password']);
|
unset($_POST['password']);
|
||||||
jtable_respond($_POST, 'single');
|
jtable_respond($_POST, 'single');
|
||||||
} else {
|
} else {
|
||||||
jtable_respond(null, 'error', 'Could not add/change this user');
|
jtable_respond(null, 'error', 'Could not add/change this user');
|
||||||
}
|
}
|
||||||
} elseif ($action == "delete") {
|
} elseif ($action == "delete") {
|
||||||
if (delete_user($_POST['id']) === TRUE) {
|
if (delete_user($_POST['id']) !== FALSE) {
|
||||||
jtable_respond(null, 'delete');
|
jtable_respond(null, 'delete');
|
||||||
} else {
|
} else {
|
||||||
jtable_respond(null, 'error', 'Could not delete this user');
|
jtable_respond(null, 'error', 'Could not delete this user');
|
||||||
|
|
Loading…
Add table
Reference in a new issue