mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Update index.php
Wasn't PHP
This commit is contained in:
parent
d8cee3c173
commit
e77008957d
@ -32,7 +32,7 @@
|
||||
$DB->query("
|
||||
SELECT Token, Name
|
||||
FROM api_applications
|
||||
WHERE ID = '"+db_string($AppID)+"'
|
||||
WHERE ID = '".db_string($AppID)."'
|
||||
LIMIT 1");
|
||||
$App = $DB->to_array(false, MYSQLI_ASSOC);
|
||||
$Cache->cache_value("api_apps_$AppID", $App, 0);
|
||||
@ -54,7 +54,7 @@
|
||||
$DB->query("
|
||||
SELECT AppID, Token, State, Time, Access
|
||||
FROM api_users
|
||||
WHERE UserID = '"+db_string($UserID)+"'
|
||||
WHERE UserID = '".db_string($UserID)."'
|
||||
LIMIT 1"); //int, no db_string
|
||||
$User = $DB->to_array('AppID', MYSQLI_ASSOC);
|
||||
$Cache->cache_value("api_users_$UserID", $User, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user