From 7cba62ce3da0b68010bed241a5875837f65c3b12 Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Fri, 26 Jul 2013 23:10:08 -0500 Subject: [PATCH] Fix sql query for register API user Well kinda... I fixed one problem, but there's more... I don't know what might be wrong with it. This will take a little bit of troubleshooting x.x --- api.backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.backend.php b/api.backend.php index f86ba3a..198289b 100644 --- a/api.backend.php +++ b/api.backend.php @@ -324,7 +324,7 @@ class api{ $api = $perms[3]; $sql = "INSERT INTO `users` (name, key, short, image, reg, api, email, resetkey) VALUES('$appname', '$key', '$short', '$image', '$reg', '$api', '$email', '$resetkey')"; - if(!$result = $apidb->query($apisql)) return 'ERROR: ['.$apidb->error.']'; + if(!$result = $apidb->query($sql)) return 'ERROR: ['.$apidb->error.']'; return "Registered $appname for API use. Key: $key - ResetKey: $resetkey"; }