broken game thumb check

This commit is contained in:
Astrologies 2021-12-12 09:21:37 -05:00
parent b9c75dda17
commit db0ba6d050
1 changed files with 5 additions and 0 deletions

View File

@ -4954,6 +4954,11 @@ function handleGameThumb($id)
$thumbhash = $placeinfo->ThumbHash; $thumbhash = $placeinfo->ThumbHash;
if ($thumbhash) if ($thumbhash)
{ {
//broken check
if (!file_get_contents($GLOBALS['renderCDNPath'].$thumbhash))
{
return getImageFromAsset(4);
}
return constructRenderHashUrl($thumbhash); return constructRenderHashUrl($thumbhash);
} }