diff --git a/medialist.php b/medialist.php index bde47bbd7b0..ca04d34c484 100644 --- a/medialist.php +++ b/medialist.php @@ -298,7 +298,7 @@ } echo ''; echo ''; - if ((++$n) % $columns == 0) { + if ((++$n) % $columns == 0 && $n < $count) { echo ''; } } // end media loop