oops, moved DB test to real name
This commit is contained in:
@@ -100,7 +100,7 @@ class ps4
|
|||||||
function thumbnailurl($game_id)
|
function thumbnailurl($game_id)
|
||||||
{
|
{
|
||||||
$result = DB::queryFirstField(
|
$result = DB::queryFirstField(
|
||||||
"SELECT thumbnail FROM game_thumbnail2 WHERE game_id = %s",
|
"SELECT thumbnail FROM game_thumbnail WHERE game_id = %s",
|
||||||
$game_id
|
$game_id
|
||||||
);
|
);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@@ -121,13 +121,13 @@ class ps4
|
|||||||
$actualurl = $this->thumbnailurl($gameid);
|
$actualurl = $this->thumbnailurl($gameid);
|
||||||
if ($actualurl == "images/no-thumbnail.png") {
|
if ($actualurl == "images/no-thumbnail.png") {
|
||||||
$result = DB::query(
|
$result = DB::query(
|
||||||
"INSERT INTO game_thumbnail2 (game_id, thumbnail) VALUES (%s, %?)",
|
"INSERT INTO game_thumbnail (game_id, thumbnail) VALUES (%s, %?)",
|
||||||
$gameid,
|
$gameid,
|
||||||
$imageContents
|
$imageContents
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$result = DB::query(
|
$result = DB::query(
|
||||||
"UPDATE game_thumbnail2 SET thumbnail = %? WHERE game_id = %s",
|
"UPDATE game_thumbnail SET thumbnail = %? WHERE game_id = %s",
|
||||||
$imageContents,
|
$imageContents,
|
||||||
$gameid
|
$gameid
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user