Update index.php

Wasn't PHP
This commit is contained in:
TeamRocketYolo 2015-04-01 19:35:36 +02:00
parent d8cee3c173
commit e77008957d

View File

@ -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);