If "No Apps found" happened on home page for weird reason, the page navigation would appear

This commit is contained in:
Squidly271 2022-03-04 08:53:24 -05:00
parent 62b11ea53f
commit 88c980d58c
5 changed files with 3 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,7 @@
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
6700c9366be9e726739f60b71040625a ./include/exec.php
431e01c2f9a14e02f43db9a36591f7b3 ./include/exec.php
51a726cbd05fecf5ec30000b29581de7 ./include/helpers.php
d827ebdf8c29aa6a9818df043a37721e ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js
@ -20,4 +20,4 @@ e19c8f05c687dcf03ea0ba2ed7099a6e ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
2da35d3042b93459f171595811d534b3 ./skins/Narrow/css.php
e9244df3418ca3e7fa206d9b6e94c6b1 ./skins/Narrow/skin.html
5525acd9e2d7c9f0a74bb98198dfec2e ./skins/Narrow/skin.php
7026cc536702992828d798bb48097e28 ./skins/Narrow/skin.php

View File

@ -41,11 +41,9 @@ $DockerTemplates = new DockerTemplates();
if ( is_file("/var/run/dockerd.pid") && is_dir("/proc/".@file_get_contents("/var/run/dockerd.pid")) ) {
$caSettings['dockerRunning'] = true;
// $dockerRunning = $DockerClient->getDockerContainers();
} else {
$caSettings['dockerSearch'] = "no";
unset($caSettings['dockerRunning']);
// $dockerRunning = array();
}
@mkdir($caPaths['tempFiles'],0777,true);

View File

@ -304,7 +304,7 @@ function getPageNavigation($pageNumber,$totalApps,$dockerSearch,$displayCount =
$totalPages = ceil($totalApps / $caSettings['maxPerPage']);
if ($totalPages == 1) return "<script>data.currentpage = 1;</script>";
if ($totalPages <= 1) return "<script>data.currentpage = 1;</script>";
$startApp = ($pageNumber - 1) * $caSettings['maxPerPage'] + 1;
$endApp = $pageNumber * $caSettings['maxPerPage'];