Commit 267c6da2882bf44db3e957c1c91f542498774566
1 parent
dda9aaf2
returnUrl in feedback
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
views/artbox_comment_list.php
... | ... | @@ -44,7 +44,7 @@ |
44 | 44 | } |
45 | 45 | }, |
46 | 46 | 'afterItem' => function ($model, $key, $index, $widget) use ($more, $comments) { |
47 | - if ($index == ($comments->count-1) and $more['show_'] and $more['key'] != $comments->count){ | |
47 | + if ($index == ($comments->count-1) and $more['show_'] and $more['key'] < $comments->count){ | |
48 | 48 | |
49 | 49 | return "<a id='hide_more_link' style='cursor:pointer'>Скрыть комментарии</a></div>"; |
50 | 50 | } | ... | ... |