From 00d94bbf742b4cfe4fbedeebcd5dbe6b80306e0e Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Fri, 4 Jul 2014 11:55:37 +0200 Subject: [PATCH] We return something else now --- users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users.php b/users.php index aae00b3..80a9e82 100644 --- a/users.php +++ b/users.php @@ -26,14 +26,14 @@ if ($action == "list") { jtable_respond(null, 'error', "Please only use ^[a-z0-9@_.-]+$ for usernames"); } $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']); jtable_respond($_POST, 'single'); } else { jtable_respond(null, 'error', 'Could not add/change this user'); } } elseif ($action == "delete") { - if (delete_user($_POST['id']) === TRUE) { + if (delete_user($_POST['id']) !== FALSE) { jtable_respond(null, 'delete'); } else { jtable_respond(null, 'error', 'Could not delete this user');