]> Stephen's Gitweb - steam_shader_stats.git/commitdiff
Fix "Steam is processing..." notifications when it actually isn't
authorStephen Jianu <stephen@stephenjianu.com>
Sat, 16 Sep 2023 06:33:34 +0000 (01:33 -0500)
committerStephen Jianu <stephen@stephenjianu.com>
Sat, 16 Sep 2023 06:33:34 +0000 (01:33 -0500)
steam_shader_stats.php

index 643877d7dc5daa0ac1aacef41204732f932002e8..2b08a909c06acb8206a6d4fb1fcbf81bc7a51d7f 100755 (executable)
@@ -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'];