From: Stephen Jianu Date: Sat, 16 Sep 2023 06:33:34 +0000 (-0500) Subject: Fix "Steam is processing..." notifications when it actually isn't X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=bded054b04725afba1d656fbbe5b1eebb9b53184;p=steam_shader_stats.git Fix "Steam is processing..." notifications when it actually isn't --- diff --git a/steam_shader_stats.php b/steam_shader_stats.php index 643877d..2b08a90 100755 --- a/steam_shader_stats.php +++ b/steam_shader_stats.php @@ -30,7 +30,7 @@ foreach ($fossilizeList as $fossilize) { // that all appids in the list will match and we can just pull the first one // Source: https://stackoverflow.com/questions/57031685/how-can-i-get-details-about-an-steam-appid-from-steam-web-api // Source: https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI#appdetails -if (isset($appList)) { +if (!empty($appList)) { $url = "https://store.steampowered.com/api/appdetails?appids=".$appList[0]; $json = json_decode(file_get_contents($url), true); $gameName = $json[$appList[0]]['data']['name'];