Fixed: Very old CA installs would crash on the home page.

This commit is contained in:
Squidly271 2022-03-09 18:19:15 -05:00
parent c59af1efc2
commit 021278d407
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@ af50c424366caf1bc4af63398a0e6adb ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
1b022dd1f25bf7dbd10383fa1b924600 ./include/exec.php
8411adf2906e9d225b59d8dd3eba97e8 ./include/exec.php
f32bb71914346adbbc8a3a6b59e9521d ./include/helpers.php
d827ebdf8c29aa6a9818df043a37721e ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -32,6 +32,7 @@ $caSettings['dockerSearch'] = "yes";
$caSettings['unRaidVersion'] = $unRaidSettings['version'];
$caSettings['favourite'] = str_replace("*","'",$caSettings['favourite']);
$caSettings['maxPerPage'] = (integer)$caSettings['maxPerPage'] ?: "24"; // Handle possible corruption on file
if ( $caSettings['maxPerPage'] < 24 ) $caSettings['maxPerPage'] = 24;
if ( ! is_file($caPaths['warningAccepted']) )
$caSettings['NoInstalls'] = true;