Changeset 10711 for branches/2.2


Ignore:
Timestamp:
Apr 30, 2011, 9:41:09 PM (13 years ago)
Author:
patdenice
Message:

Division by zero corrected on element_set_ranks.php if no thumbnails to display.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/admin/element_set_ranks.php

    r10516 r10711  
    246246  $current_rank++;
    247247}
    248 $clipping=array_sum($clipping)/count($clipping);
     248if (count($clipping) > 0)
     249{
     250  $clipping=array_sum($clipping)/count($clipping);
     251}
    249252foreach ($thumbnail_info as $thumbnails_info)
    250253{
Note: See TracChangeset for help on using the changeset viewer.