File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Syntax/SteamApi/Containers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class Game extends BaseContainer
1010
1111 public $ playtimeTwoWeeks ;
1212
13+ public $ playtimeTwoWeeksReadable ;
14+
1315 public $ playtimeForever ;
1416
1517 public $ playtimeForeverReadable ;
@@ -26,7 +28,8 @@ public function __construct($app)
2628 {
2729 $ this ->appId = $ app ->appid ;
2830 $ this ->name = $ this ->checkIssetField ($ app , 'name ' );
29- $ this ->playtimeTwoWeeks = isset ($ app ->playtime_2weeks ) ? $ this ->convertFromMinutes ($ app ->playtime_2weeks ) : '0 minutes ' ;
31+ $ this ->playtimeTwoWeeks = $ this ->checkIssetField ($ app , 'playtime_2weeks ' , 0 );
32+ $ this ->playtimeTwoWeeksReadable = $ this ->convertFromMinutes ($ this ->playtimeTwoWeeks );
3033 $ this ->playtimeForever = $ this ->checkIssetField ($ app , 'playtime_forever ' , 0 );
3134 $ this ->playtimeForeverReadable = $ this ->convertFromMinutes ($ this ->playtimeForever );
3235 $ this ->icon = $ this ->checkIssetImage ($ app , 'img_icon_url ' );
You can’t perform that action at this time.
0 commit comments