From 2172c00ce4fe47e76306f959df993cf08ba330ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Wed, 25 Jul 2012 00:30:11 +0200 Subject: [PATCH] Feature #5142 fix warning div by 0 --- main/document/slideshow.php | 72 ++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/main/document/slideshow.php b/main/document/slideshow.php index b5f7e3ecad..ec5af67f9b 100644 --- a/main/document/slideshow.php +++ b/main/document/slideshow.php @@ -338,47 +338,45 @@ if ($slide_id == 'all') { }//end if exist file image }//end foreach }//end image files only -} - -// Creating the table -$html_table = ''; -echo ''; -$i = 0; -$count_image = count($image_tag); -$number_iteration = ceil($count_image/$number_image); -$p = 0; -for ($k = 0; $k < $number_iteration; $k++) { - echo ''; - for ($i = 0; $i < $number_image; $i++) { - if (!is_null($image_tag[$p])) { - echo ''; } - - - '; - echo ''.$image_tag[$p].''; - echo ''; - echo ''; + $p++; } - $p++; + echo ''; } - echo ''; -} -echo '
'; - //TODO:move styles to css files and center image vertical - ?> - - + + '; + echo ''.$image_tag[$p].''; + echo ''; + echo '
'; - - + echo ''; +}//end slide==all