aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/element_set_ranks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/element_set_ranks.php b/admin/element_set_ranks.php
index da2ace70e..a01c568f0 100644
--- a/admin/element_set_ranks.php
+++ b/admin/element_set_ranks.php
@@ -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;