From e77008957d117e9b5b0723fef6ab87bc74577292 Mon Sep 17 00:00:00 2001 From: TeamRocketYolo Date: Wed, 1 Apr 2015 19:35:36 +0200 Subject: [PATCH] Update index.php Wasn't PHP --- sections/api/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sections/api/index.php b/sections/api/index.php index 831817d7..3fadec77 100644 --- a/sections/api/index.php +++ b/sections/api/index.php @@ -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);