Skip to content

Commit

Permalink
#40 fix out of range notice
Browse files Browse the repository at this point in the history
  • Loading branch information
svanschu committed Apr 14, 2021
1 parent 516ff7c commit ebfeca9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/mod_sw_kbirthday/tmpl/kunena_bottom.php
Expand Up @@ -33,7 +33,10 @@
<ul class="unstyled span3">
<?php for ($ii = 0; $ii < $singlecount; $ii++): ?>
<li>
<?php echo $res[$ii+($i*$singlecount)]['link']; ?>
<?php if ($count > $ii + ($i * $singlecount))
{
echo $res[$ii + ($i * $singlecount)]['link'];
} ?>
</li>
<?php endfor; ?>
</ul>
Expand Down
5 changes: 4 additions & 1 deletion src/mod_sw_kbirthday/tmpl/kunena_bottom_cb3.php
Expand Up @@ -41,7 +41,10 @@ class="glyphicon glyphicon-sort" aria-hidden="true"></span></div>
<ul class="list-unstyled">
<?php for ($ii = 0; $ii < $singlecount; $ii++): ?>
<li>
<?php echo $res[$ii + ($i * $singlecount)]['link']; ?>
<?php if ($count > $ii + ($i * $singlecount))
{
echo $res[$ii + ($i * $singlecount)]['link'];
} ?>
</li>
<?php endfor; ?>
</ul>
Expand Down
5 changes: 4 additions & 1 deletion src/mod_sw_kbirthday/tmpl/kunena_bottom_cb4.php
Expand Up @@ -42,7 +42,10 @@
<ul class="list-unstyled">
<?php for ($ii = 0; $ii < $singlecount; $ii++): ?>
<li>
<?php echo $res[$ii + ($i * $singlecount)]['link']; ?>
<?php if ($count > $ii + ($i * $singlecount))
{
echo $res[$ii + ($i * $singlecount)]['link'];
} ?>
</li>
<?php endfor; ?>
</ul>
Expand Down

0 comments on commit ebfeca9

Please sign in to comment.