fixed bug when clicking cancel

This commit is contained in:
2018-12-01 15:49:53 -05:00
parent 4e6decdf99
commit 6d74d3fbc7

View File

@@ -86,6 +86,10 @@ class ps4 {
$sql = "UPDATE game_thumbnail SET thumbnail_url = '".$url."' WHERE game_id = '".$gameid."';";
}
if (($url == "") or ($url == "null")) {
echo "<strong>ERROR:</strong> No URL specified.";
echo "<br/><br/>";
} else {
$result = $this->mysql_conn($sql);
if ($result == 1) {
echo "<strong>SUCCESS:</strong> Updated image URL for <strong>". $gamename ."</strong> (". $gameid .")";
@@ -96,6 +100,8 @@ class ps4 {
}
}
}
}
?>