Handle incompatible apps appearing within Spotlight on home page

This commit is contained in:
Squidly271 2021-12-29 11:57:20 -05:00
parent e6f2f05fd5
commit 8a889b37ed
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@
83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page
18ded5848ac35ffae0e8e0fc8ed3c512 ./ca_settings.page
ed2883d6c44c19304c431079596a1731 ./default.cfg
bb619eacf570f936207f98d99ea3f9de ./include/exec.php
70e4b4b5942900c8280640e1dece91a8 ./include/exec.php
b6920c2d8b2ea81a4dabbd935b93895e ./include/helpers.php
95709ae0ed53e2889a93849a69b37892 ./include/paths.php
410c0166bae560754e231486050621f6 ./javascript/libraries.js

View File

@ -504,7 +504,9 @@ function appOfDay($file) {
$sortOrder['sortDir'] = "Down";
usort($file,"mySort");
foreach($file as $template) {
if ($template['RecommendedDate']) {
if ($template['RecommendedDate'] ) {
if ( $caSettings['hideIncompatible'] == "true" && ! versionCheck($template)) continue;
$appOfDay[] = $template['ID'];
if ( count($appOfDay) == 7 ) break;
} else {