remove page number if no cog found

This commit is contained in:
Eslyium 2020-09-04 20:22:33 -04:00 committed by GitHub
parent 63f6f47093
commit 678559e742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,9 @@ $cog_chunks = array_chunk($cogs, $per_page);
</svg>
Previous
</button>
<page>Page <?php print($page);?> of <?php print(count($cog_chunks)); ?></page>
<?php if(count($cog_chunks) >= 1){?>
<page>Page <?php print($page);?> of <?php print(count($cog_chunks)); ?></page>
<?php } ?>
<button class="right <?php if(count($cog_chunks) <= $page){?>hidden<?php }?>" href="?p=<?php print($page + 1);?>&filter=<?php print($filter);?>&ua=<?php print($show_ua);?>">
Next