From 16d7d3f7c06071cf5483dece95d77e2f9c49674a Mon Sep 17 00:00:00 2001 From: Sebastien Plante Date: Sun, 30 Aug 2020 15:42:02 -0400 Subject: [PATCH] oops, moved DB test to real name --- class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class.php b/class.php index 01fc2ce..7c93a27 100644 --- a/class.php +++ b/class.php @@ -100,7 +100,7 @@ class ps4 function thumbnailurl($game_id) { $result = DB::queryFirstField( - "SELECT thumbnail FROM game_thumbnail2 WHERE game_id = %s", + "SELECT thumbnail FROM game_thumbnail WHERE game_id = %s", $game_id ); if ($result) { @@ -121,13 +121,13 @@ class ps4 $actualurl = $this->thumbnailurl($gameid); if ($actualurl == "images/no-thumbnail.png") { $result = DB::query( - "INSERT INTO game_thumbnail2 (game_id, thumbnail) VALUES (%s, %?)", + "INSERT INTO game_thumbnail (game_id, thumbnail) VALUES (%s, %?)", $gameid, $imageContents ); } else { $result = DB::query( - "UPDATE game_thumbnail2 SET thumbnail = %? WHERE game_id = %s", + "UPDATE game_thumbnail SET thumbnail = %? WHERE game_id = %s", $imageContents, $gameid );