fixed bug when clicking cancel
This commit is contained in:
16
class.php
16
class.php
@@ -86,14 +86,20 @@ class ps4 {
|
||||
$sql = "UPDATE game_thumbnail SET thumbnail_url = '".$url."' WHERE game_id = '".$gameid."';";
|
||||
}
|
||||
|
||||
$result = $this->mysql_conn($sql);
|
||||
if ($result == 1) {
|
||||
echo "<strong>SUCCESS:</strong> Updated image URL for <strong>". $gamename ."</strong> (". $gameid .")";
|
||||
if (($url == "") or ($url == "null")) {
|
||||
echo "<strong>ERROR:</strong> No URL specified.";
|
||||
echo "<br/><br/>";
|
||||
} else {
|
||||
echo "<strong>ERROR:</strong> Can't update image URL for <strong>". $gamename ."</strong> (". $gameid .")";
|
||||
echo "<br/><br/>";
|
||||
$result = $this->mysql_conn($sql);
|
||||
if ($result == 1) {
|
||||
echo "<strong>SUCCESS:</strong> Updated image URL for <strong>". $gamename ."</strong> (". $gameid .")";
|
||||
echo "<br/><br/>";
|
||||
} else {
|
||||
echo "<strong>ERROR:</strong> Can't update image URL for <strong>". $gamename ."</strong> (". $gameid .")";
|
||||
echo "<br/><br/>";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user