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
This commit is contained in:
Arctic Code 2013-07-26 23:10:08 -05:00
parent ddcdecbec7
commit 7cba62ce3d

View File

@ -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";
}