File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929
3030 // Set Latest Version
3131 foreach ($ eoldata as $ eolitem ) {
32- // Windows 10
33- if (!$ eolitem ['lts ' ]
34- && !str_contains ($ eolitem ['cycle ' ], '-e ' )
35- && str_contains ($ eolitem ['cycle ' ], '10 ' )
36- && $ found10 === false ) {
37- $ latestver = $ latestver . $ eolitem ['latest ' ] . ' ' ;
38- $ found10 = true ;
39- }
40-
4132 // Windows 11
42- if (!$ eolitem ['lts ' ]
33+ if (!( bool ) $ eolitem ['lts ' ]
4334 && !str_contains ($ eolitem ['cycle ' ], '-e ' )
44- && str_contains ($ eolitem ['cycle ' ], '11 ' )
45- && $ found11 == false ) {
35+ && str_contains ($ eolitem ['cycle ' ], '11 ' )
36+ && $ found11 == false
37+ && !str_contains ($ eolitem ['latest ' ], '10.0.28000 ' )) {
4638 $ latestver = $ latestver . $ eolitem ['latest ' ] . ' ' ;
4739 $ found11 = true ;
4840 }
4941
5042 // Break out of loop
51- if ($ found10 == true && $ found11 == true ) {
43+ if ($ found11 == true ) {
5244 break ;
5345 }
5446 }
You can’t perform that action at this time.
0 commit comments