mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 17:02:17 +02:00
Division by zero corrected on element_set_ranks.php if no thumbnails to display.
git-svn-id: http://piwigo.org/svn/branches/2.2@10711 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -245,7 +245,10 @@ while ($row = pwg_db_fetch_assoc($result))
|
||||
}
|
||||
$current_rank++;
|
||||
}
|
||||
$clipping=array_sum($clipping)/count($clipping);
|
||||
if (count($clipping) > 0)
|
||||
{
|
||||
$clipping=array_sum($clipping)/count($clipping);
|
||||
}
|
||||
foreach ($thumbnail_info as $thumbnails_info)
|
||||
{
|
||||
$thumbnail_x_center = $thumbnails_info['width']/2;
|
||||
|
||||
Reference in New Issue
Block a user