Support game files without thumbnails
authorChristian Weiske <cweiske@cweiske.de>
Sun, 10 May 2020 18:22:03 +0000 (20:22 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 10 May 2020 18:22:03 +0000 (20:22 +0200)
bin/import-game-data.php

index 283c06b60e1e081762a8d8d56086fc5e709913b2..14996c4635a71e5ebb27f6544722f1db404d3c68 100755 (executable)
@@ -419,7 +419,7 @@ function buildDetails($game)
             $mediaTiles[] = [
                 'type' => 'image',
                 'urls' => [
-                    'thumbnail' => $medium->thumb,
+                    'thumbnail' => $medium->thumb ?? $medium->url,
                     'full'      => $medium->url,
                 ],
             ];